MCPcopy Create free account
hub / github.com/defold/defold / WriteVarInt64

Method WriteVarInt64

engine/ddf/src/ddf/ddf_outputstream.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 bool OutputStream::WriteVarInt64(uint64_t value)
61 {
62 uint8_t bytes[10];
63 int size = 0;
64 while (value > 0x7F)
65 {
66 bytes[size++] = (uint8_t(value) & 0x7F) | 0x80;
67 value >>= 7;
68 }
69 bytes[size++] = uint8_t(value) & 0x7F;
70 return Write(bytes, size);
71 }
72
73 bool OutputStream::WriteFixed32(uint32_t value)
74 {

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected