MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / AppendHex

Function AppendHex

src/platform/linux/init.cpp:298–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298static char* AppendHex(char* out, char* end, uintptr_t v)
299{
300 static const char hex[] = "0123456789abcdef";
301 out = AppendLiteral(out, end, "0x");
302 bool started = false;
303 for (int shift = (int)(sizeof(uintptr_t) * 8) - 4; shift >= 0; shift -= 4) {
304 unsigned int nibble = (unsigned int)((v >> shift) & 0xF);
305 if (nibble || started || shift == 0) {
306 started = true;
307 if (out < end) *out++ = hex[nibble];
308 }
309 }
310 return out;
311}
312
313static uintptr_t FaultInstructionPointer(void* ctx)
314{

Callers 2

WriteFrameFunction · 0.85
CrashDumpHandlerFunction · 0.85

Calls 1

AppendLiteralFunction · 0.85

Tested by

no test coverage detected