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

Method readInt

Engine/source/core/stream/bitStream.cpp:325–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325S32 BitStream::readInt(S32 bitCount)
326{
327 S32 ret = 0;
328 readBits(bitCount, &ret);
329 ret = convertLEndianToHost(ret);
330 if(bitCount == 32)
331 return ret;
332 else
333 ret &= (1 << bitCount) - 1;
334 return ret;
335}
336
337void BitStream::writeInt(S32 val, S32 bitCount)
338{

Callers 15

unpackNodeMethod · 0.80
unpackUpdateMethod · 0.80
unpackUpdateMethod · 0.80
unpackMethod · 0.80
unpackUpdateMethod · 0.80
unpackUpdateMethod · 0.80
unpack_fxMethod · 0.80
unpackUpdateMethod · 0.80
unpackUpdateMethod · 0.80
unpack_fxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected