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

Method EncodeToBuffer

encoding/hex.cpp:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace toft {
9
10char* Hex::EncodeToBuffer(
11 const void* data, size_t size,
12 char* output,
13 bool uppercase)
14{
15 const unsigned char* p = static_cast<const unsigned char*>(data);
16 Encode(p, p + size, output, uppercase);
17 output[2 * size] = '\0';
18 return output;
19}
20
21std::string Hex::EncodeAsString(
22 const void* data, size_t size,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected