Searched defs:BitStreamWriter (Results 1 – 1 of 1) sorted by relevance
94 struct BitStreamWriter struct96 …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() function[all …]