summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_basic.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-30 13:23:44 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-30 17:33:36 +0000
commitccd5be05f61c85754daf5c8155f4932f6d35a55a (patch)
tree7ec719348aed7e92cdb8b28887bffcf583a7c819 /core/fxcrt/fx_basic.h
parent68eefa6a6f6bbab73000a29e2cac3e104be1cc81 (diff)
downloadpdfium-ccd5be05f61c85754daf5c8155f4932f6d35a55a.tar.xz
Move CFX_BitStream to its own file
This CL moves the CFX_BitStream code out of fx_basic and into cfx_bitstream. Bug: pdfium:867 Change-Id: I5b7e6190a7db1fe1d24feb6bd676035a5c73ee92 Reviewed-on: https://pdfium-review.googlesource.com/12350 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_basic.h')
-rw-r--r--core/fxcrt/fx_basic.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/core/fxcrt/fx_basic.h b/core/fxcrt/fx_basic.h
index 1f05dfb627..167ef5ce70 100644
--- a/core/fxcrt/fx_basic.h
+++ b/core/fxcrt/fx_basic.h
@@ -136,26 +136,6 @@ class CFX_FixedBufGrow {
std::unique_ptr<DataType, FxFreeDeleter> m_pGrowData;
};
-class CFX_BitStream {
- public:
- void Init(const uint8_t* pData, uint32_t dwSize);
-
- void ByteAlign();
- bool IsEOF() const { return m_BitPos >= m_BitSize; }
- uint32_t GetBits(uint32_t nBits);
- void SkipBits(uint32_t nBits) { m_BitPos += nBits; }
- void Rewind() { m_BitPos = 0; }
- uint32_t GetPos() const { return m_BitPos; }
- uint32_t BitsRemaining() const {
- return m_BitSize >= m_BitPos ? m_BitSize - m_BitPos : 0;
- }
-
- private:
- uint32_t m_BitPos;
- uint32_t m_BitSize;
- const uint8_t* m_pData;
-};
-
class IFX_Pause {
public:
virtual ~IFX_Pause() {}