MCPcopy Create free account
hub / github.com/Samsung/UTopia / toHex16Bit

Function toHex16Bit

external/jsoncpp/jsoncpp.cpp:4332–4341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4330 "f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff";
4331
4332static String toHex16Bit(unsigned int x) {
4333 const unsigned int hi = (x >> 8) & 0xff;
4334 const unsigned int lo = x & 0xff;
4335 String result(4, ' ');
4336 result[0] = hex2[2 * hi];
4337 result[1] = hex2[2 * hi + 1];
4338 result[2] = hex2[2 * lo];
4339 result[3] = hex2[2 * lo + 1];
4340 return result;
4341}
4342
4343static String valueToQuotedStringN(const char *value, unsigned length) {
4344 if (value == nullptr)

Callers 1

valueToQuotedStringNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected