summaryrefslogtreecommitdiff
path: root/core/include/fxcrt
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2015-12-14 09:13:24 -0800
committerOliver Chang <ochang@chromium.org>2015-12-14 09:13:24 -0800
commitbe8408f43bcfd69a74007a340a4c034004146c60 (patch)
treeaafff85b94ce75f1d9496d4da1dfee230c69e9c0 /core/include/fxcrt
parent4ea4459ecaf66043f0a8b29f60439a0056ff6036 (diff)
downloadpdfium-be8408f43bcfd69a74007a340a4c034004146c60.tar.xz
Fix hint table loading issues.
BUG=566179 R=jun_fang@foxitsoftware.com, thestig@chromium.org Review URL: https://codereview.chromium.org/1523523002 .
Diffstat (limited to 'core/include/fxcrt')
-rw-r--r--core/include/fxcrt/fx_basic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h
index c5bb570fca..5d3fc33d6f 100644
--- a/core/include/fxcrt/fx_basic.h
+++ b/core/include/fxcrt/fx_basic.h
@@ -811,6 +811,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;