MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / writeSignedFloat

Method writeSignedFloat

Engine/source/core/stream/bitStream.cpp:355–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355void BitStream::writeSignedFloat(F32 f, S32 bitCount)
356{
357 writeInt((S32)(((f + 1) * .5) * ((1 << bitCount) - 1)), bitCount);
358}
359
360F32 BitStream::readSignedFloat(S32 bitCount)
361{

Callers 5

packUpdateMethod · 0.80
packMethod · 0.80
packDataMethod · 0.80
writePacketDataMethod · 0.80
packUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected