MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / FormatHexNumber

Function FormatHexNumber

src/strings.cpp:527–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527static void FormatHexNumber(StringBuilder &builder, uint64_t number)
528{
529 fmt::format_to(builder.back_inserter(), "0x{:X}", number);
530}
531
532/**
533 * Format a given number as a number of bytes with the SI prefix.

Callers 1

FormatStringFunction · 0.85

Calls 2

format_toFunction · 0.50
back_inserterMethod · 0.45

Tested by

no test coverage detected