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

Method ReadVarInt32

engine/ddf/src/ddf/ddf_inputbuffer.cpp:67–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 bool InputBuffer::ReadVarInt32(uint32_t *value)
68 {
69 assert(value);
70 assert(m_Current <= m_End);
71
72 uint64_t tmp;
73 if (ReadVarInt64(&tmp))
74 {
75 *value = (uint32_t) tmp;
76 return true;
77 }
78 else
79 {
80 return false;
81 }
82 }
83
84 bool InputBuffer::Eof()
85 {

Callers 7

SkipFieldFunction · 0.80
DoLoadMessageFunction · 0.80
CalculateRepeatedFunction · 0.80
ReadStringFieldMethod · 0.80
ReadBytesFieldMethod · 0.80
ReadMessageFieldMethod · 0.80

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected