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

Method writeSignedInt

Engine/source/core/stream/bitStream.cpp:395–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void BitStream::writeSignedInt(S32 value, S32 bitCount)
396{
397 if(writeFlag(value < 0))
398 writeInt(-value, bitCount - 1);
399 else
400 writeInt(value, bitCount - 1);
401}
402
403S32 BitStream::readSignedInt(S32 bitCount)
404{

Callers 3

packDataMethod · 0.80
packUpdateMethod · 0.80
packDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected