llvm::toHex

Convert buffer Input to its hexadecimal representation. The returned string is double the size of Input.

Synopsis

Declared in <llvm/ADT/StringExtras.h>

void
toHex(
    ArrayRef<uint8_t> Input,
    bool LowerCase,
    SmallVectorImpl<char>& Output);

Parameters

NameDescription
Inputbytes to encode
LowerCasewhen true, use lowercase hex digits
Outputdestination for the hex characters