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

Method Put32

encoding/varint.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void Varint::Put32(std::string* dst, uint32_t v) {
45 char buf[5];
46 char* ptr = UnsafeEncode32(buf, v);
47 dst->append(buf, ptr - buf);
48}
49
50char* Varint::UnsafeEncode64(char* dst, uint64_t v) {
51 unsigned char* ptr = reinterpret_cast<unsigned char*>(dst);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected