MCPcopy Create free account
hub / github.com/PlayFab/gsdk / toHex16Bit

Function toHex16Bit

cpp/cppsdk/jsoncpp.cpp:4436–4445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4434 "f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff";
4435
4436static JSONCPP_STRING toHex16Bit(unsigned int x) {
4437 const unsigned int hi = (x >> 8) & 0xff;
4438 const unsigned int lo = x & 0xff;
4439 JSONCPP_STRING result(4, ' ');
4440 result[0] = hex2[2 * hi];
4441 result[1] = hex2[2 * hi + 1];
4442 result[2] = hex2[2 * lo];
4443 result[3] = hex2[2 * lo + 1];
4444 return result;
4445}
4446
4447static JSONCPP_STRING valueToQuotedStringN(const char* value, unsigned length) {
4448 if (value == NULL)

Callers 1

valueToQuotedStringNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected