MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setBuffer

Method setBuffer

Engine/source/core/stream/bitStream.cpp:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147HuffmanProcessor HuffmanProcessor::g_huffProcessor;
148
149void BitStream::setBuffer(void *bufPtr, S32 size, S32 maxSize)
150{
151 mDataPtr = (U8 *) bufPtr;
152 bitNum = 0;
153 bufSize = size;
154 maxReadBitNum = size << 3;
155 if(maxSize < 0)
156 maxSize = size;
157 maxWriteBitNum = maxSize << 3;
158 error = false;
159 clearCompressionPoint();
160}
161
162U32 BitStream::getPosition() const
163{

Callers 1

getPacketStreamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected