diff options
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 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; |