folly::hexlify

hexlify overloads

Synopses

Declared in <folly/String.h>

Convert byte range to hexadecimal representation, returning the result.

template<class OutputString = std::string>
OutputString
hexlify(ByteRange input);
» more...

Convert string to hexadecimal representation, returning the result.

template<class OutputString = std::string>
OutputString
hexlify(StringPiece input);
» more...

Convert input to hexadecimal representation.

template<
    class InputString,
    class OutputString>
bool
hexlify(
    InputString const& input,
    OutputString& output,
    bool append = false);
» more...

Return Value

  • The hex representation of the input.
  • True on successful conversion.

Parameters

NameDescription
inputThe binary data to convert.
outputThe output string that the hex representation is written to.
appendWhether to append to output rather than replace it.