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

Method Put64

encoding/varint.cpp:60–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void Varint::Put64(std::string* dst, uint64_t v) {
61 char buf[10];
62 char* ptr = UnsafeEncode64(buf, v);
63 dst->append(buf, ptr - buf);
64}
65
66char* Varint::Encode32(char* p, char* limit, uint32_t v) {
67 if (EncodedLength(v) > limit - p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected