MCPcopy Create free account
hub / github.com/chen3feng/toft / Encode32

Method Encode32

encoding/varint.cpp:66–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66char* Varint::Encode32(char* p, char* limit, uint32_t v) {
67 if (EncodedLength(v) > limit - p)
68 return NULL;
69 return UnsafeEncode32(p, v);
70}
71
72char* Varint::Encode64(char* p, char* limit, uint64_t v) {
73 if (EncodedLength(v) > limit - p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected