MCPcopy Create free account
hub / github.com/Illumina/paragraph / toHex16Bit

Function toHex16Bit

external/jsoncpp/jsoncpp.cpp:4386–4395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4384 "f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff";
4385
4386static JSONCPP_STRING toHex16Bit(unsigned int x) {
4387 const unsigned int hi = (x >> 8) & 0xff;
4388 const unsigned int lo = x & 0xff;
4389 JSONCPP_STRING result(4, ' ');
4390 result[0] = hex2[2 * hi];
4391 result[1] = hex2[2 * hi + 1];
4392 result[2] = hex2[2 * lo];
4393 result[3] = hex2[2 * lo + 1];
4394 return result;
4395}
4396
4397static JSONCPP_STRING valueToQuotedStringN(const char* value, unsigned length) {
4398 if (value == NULL)

Callers 1

valueToQuotedStringNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected