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

Function WriteULEB128

source/common/scripting/jit/jit_runtime.cpp:351–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351static void WriteULEB128(TArray<uint8_t> &stream, uint32_t v)
352{
353 while (true)
354 {
355 if (v < 128)
356 {
357 WriteUInt8(stream, v);
358 break;
359 }
360 else
361 {
362 WriteUInt8(stream, (v & 0x7f) | 0x80);
363 v >>= 7;
364 }
365 }
366}
367
368static void WriteSLEB128(TArray<uint8_t> &stream, int32_t v)
369{

Callers 6

WriteSLEB128Function · 0.85
WriteCIEFunction · 0.85
WriteFDEFunction · 0.85
WriteDefineCFAFunction · 0.85
WriteDefineStackOffsetFunction · 0.85

Calls 1

WriteUInt8Function · 0.85

Tested by

no test coverage detected