Index: core/include/fxcrt/fx_basic.h |
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h |
index c5bb570fcabd06c4bbf763a68172144850f4a052..5d3fc33d6f4b29900beac290ba1aa9aec3015484 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; } |
Lei Zhang
2015/12/12 01:38:12
Both methods can be const?
Oliver Chang
2015/12/12 02:37:14
good point, done.
|
+ |
+ FX_DWORD BitsRemaining() { |
+ return m_BitSize >= m_BitPos ? m_BitSize - m_BitPos : 0; |
+ } |
+ |
protected: |
FX_DWORD m_BitPos; |