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);

Convert string to hexadecimal representation, returning the result.

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

Convert input to hexadecimal representation.

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

Return Value

  • The hex representation of the input.

  • True on successful conversion.

Parameters

Name

Description

input

The binary data to convert.

output

The output string that the hex representation is written to.

append

Whether to append to output rather than replace it.

Created with MrDocs