Lines Matching defs:BitStreamWriter
94 struct BitStreamWriter struct
96 …t* stream; //Growable buffer to store our bits. Heap allocated & owned by the class instance.
97 int bytesAllocated; //Current size of heap-allocated stream buffer *in bytes*.
98 int granularity; //Amount bytesAllocated multiplies by when auto-resizing in appendBit().
99 int currBytePos; //Current byte being written to, from 0 to bytesAllocated-1.
100 int nextBitPos; //Bit position within the current byte to access next. 0 to 7.
101 …itsWritten; //Number of bits in use from the stream buffer, not including byte-rounding padding.
103 void internalInit() in internalInit()
113 uint8_t* allocBytes(const int bytesWanted, uint8_t * oldPtr, const int oldSize) in allocBytes()
125 BitStreamWriter() in BitStreamWriter() argument
133 BitStreamWriter(const int initialSizeInBits, const int growthGranularity = 2) in BitStreamWriter() function
140 ~BitStreamWriter() in ~BitStreamWriter()
145 void allocate(int bitsWanted) in allocate()
161 void appendBit(const int bit) in appendBit()
173 void appendBitsU64(const uint64_t num, const int bitCount) in appendBitsU64()
182 uint8_t* release() in release()
189 void setGranularity(const int growthGranularity) in setGranularity()
194 int getByteCount() const in getByteCount()