diff options
author | Oliver Chang <ochang@chromium.org> | 2015-12-14 09:20:22 -0800 |
---|---|---|
committer | Oliver Chang <ochang@chromium.org> | 2015-12-14 09:20:22 -0800 |
commit | 327f71ffe3ed5b9fef1d34f05324c068aee7714d (patch) | |
tree | d8f6f518c3b24f494e8239c953fbcef708e46e3d /core/include/fxcrt/fx_basic.h | |
parent | 790842ab3c35c09d0692dc07979a7e91ec183014 (diff) | |
download | pdfium-327f71ffe3ed5b9fef1d34f05324c068aee7714d.tar.xz |
Merge to XFA: Fix hint table loading issues.
BUG=566179
TBR=thestig@chromium.org
Original Review URL: https://codereview.chromium.org/1523523002 .
(cherry picked from commit be8408f43bcfd69a74007a340a4c034004146c60)
Review URL: https://codereview.chromium.org/1518403003 .
Diffstat (limited to 'core/include/fxcrt/fx_basic.h')
-rw-r--r-- | core/include/fxcrt/fx_basic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index e35084c3e8..c21a4f54c5 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -916,6 +916,12 @@ class CFX_BitStream { void Rewind() { m_BitPos = 0; } + FX_DWORD GetPos() { return m_BitPos; } + + FX_DWORD BitsRemaining() { + return m_BitSize >= m_BitPos ? m_BitSize - m_BitPos : 0; + } + protected: FX_DWORD m_BitPos; |