9 #include "../Utils/AsyncPrinter.h"
52 void Write(UINT8* c, UINT16 len);
56 void WriteRaw(UINT8* c, UINT16 len);
60 void Write(
string str);
103 string ReadStdString();
135 int GetBufferLength();
145 int GetBitIndexInCurrentByte();
156 void construct(UINT8* buff,
int size);
158 bool AssertBufferHasSpace(UINT32 bits);
160 void InternalWriteByte(
const UINT8 data,
int bit_length);
161 void InternalWriteBytes(
const UINT8 data[],
int bytes);
162 void InternalWriteInteger(
const UINT64 data,
int bits);
164 UINT8 InternalReadByte(
int bit_length);
165 UINT8* InternalReadBytes(
int length);
166 UINT64 InternalReadInteger(
int bits);
168 void FitBufferToSize(UINT32 bits);
170 static const int kBufferResizeOverAllocateBytes;
172 UINT8 * m_internalBuffer;
173 UINT32 m_internalBufferSize;
174 int m_internalBitPos;