Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZDoom/Raze
/ WriteUInt16
Function
WriteUInt16
source/common/scripting/jit/jit_runtime.cpp:340–344 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
338
}
339
340
static void WriteUInt16(TArray<uint8_t> &stream, uint16_t v)
341
{
342
for (int i = 0; i < 2; i++)
343
stream.Push((v >> (i * 8)) & 0xff);
344
}
345
346
static void WriteUInt8(TArray<uint8_t> &stream, uint8_t v)
347
{
Callers
1
WriteAdvanceLoc
Function · 0.85
Calls
1
Push
Method · 0.45
Tested by
no test coverage detected