Skip to content

HexCoder

class HexStreamDecoder

Decode Hex-encoded data and write the decoded data to a stream.

constructor HexStreamDecoder(std::ostream &stream, size_t line_length = 0, size_t indent = 0)

ParameterDescription
stream

TYPE: std::ostream &

line_length

TYPE: size_tDEFAULT: 0

indent

TYPE: size_tDEFAULT: 0

method void end()

Finish the decoding process.

class HexStreamEncoder

Encode data in Hex and write it to a stream.

constructor HexStreamEncoder(std::ostream &stream, size_t line_length = 0, size_t indent = 0)

ParameterDescription
stream

TYPE: std::ostream &

line_length

TYPE: size_tDEFAULT: 0

indent

TYPE: size_tDEFAULT: 0

method void end()

Finish the encoding process.

class HexStringDecoder

Decode Hex-encoded data and collect the decoded data in a string.

constructor HexStringDecoder()

method std::string end()

Finish the decoding process and return the decoded data.

ReturnsDescription
std::string

The decoded data.

class HexStringEncoder

Encode data in Hex and collect the encoded data in a string.

constructor HexStringEncoder()

method std::string end()

Finish the encoding process and return the encoded data.

ReturnsDescription
std::string

The encoded data.