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)
| Parameter | Description |
|---|---|
stream |
TYPE: |
line_length |
TYPE: |
indent |
TYPE: |
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)
| Parameter | Description |
|---|---|
stream |
TYPE: |
line_length |
TYPE: |
indent |
TYPE: |
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.
| Returns | Description |
|---|---|
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.
| Returns | Description |
|---|---|
std::string |
The encoded data. |