MCPcopy Create free account
hub / github.com/ZDoom/Raze / WriteFloat

Function WriteFloat

source/core/d_protocol.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void WriteFloat (float v, uint8_t **stream)
127{
128 union
129 {
130 int i;
131 float f;
132 } fakeint;
133 fakeint.f = v;
134 WriteLong (fakeint.i, stream);
135}
136
137// Returns the number of bytes read
138int UnpackUserCmd (InputPacket *ucmd, const InputPacket *basis, uint8_t **stream)

Callers 2

PackUserCmdFunction · 0.85
TicSpecialClass · 0.85

Calls 1

WriteLongFunction · 0.85

Tested by

no test coverage detected