MCPcopy Create free account
hub / github.com/SOUI2/soui / toHex16Bit

Function toHex16Bit

third-part/jsoncpp/src/lib_json/json_writer.cpp:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 "f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff";
241
242static JSONCPP_STRING toHex16Bit(unsigned int x) {
243 const unsigned int hi = (x >> 8) & 0xff;
244 const unsigned int lo = x & 0xff;
245 JSONCPP_STRING result(4, ' ');
246 result[0] = hex2[2 * hi];
247 result[1] = hex2[2 * hi + 1];
248 result[2] = hex2[2 * lo];
249 result[3] = hex2[2 * lo + 1];
250 return result;
251}
252
253static JSONCPP_STRING valueToQuotedStringN(const char* value, unsigned length) {
254 if (value == NULL)

Callers 1

valueToQuotedStringNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected