llvm::write_hex

Write a hexadecimal value to a stream.

Synopsis

Declared in <llvm/Support/NativeFormatting.h>

void
write_hex(
    raw_ostream& S,
    uint64_t N,
    HexPrintStyle Style,
    std::optional<size_t> Width = std::nullopt);

Parameters

NameDescription
SDestination stream.
NValue to write.
StyleHexadecimal formatting style.
WidthOptional minimum field width; zero-pads when set.