MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / putVarInt

Method putVarInt

src/protobuf.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void ProtoBuffer::putVarInt(u64 n) {
39 ensureCapacity(varIntSize(n));
40 while ((n >> 7) != 0) {
41 _data[_offset++] = (unsigned char) (0x80 | n);
42 n >>= 7;
43 }
44 _data[_offset++] = (unsigned char) n;
45}
46
47void ProtoBuffer::tag(protobuf_index_t index, protobuf_t type) {
48 putVarInt((u64) (index << 3 | type));

Callers 1

recordStacksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected