HexStreamEncoder
class HexStreamEncoder
A helper class to encode data a hexadecimal string.
DEFINITION
class HexStreamEncoder;
constructor HexStreamEncoder
Create a new hex stream encoder.
DEFINITION
| HexStreamEncoder | ( | std::ostream & stream, | |
| size_t line_length = 0, | |||
| size_t indent = 0 | ); |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
The stream to write the encoded data to. |
line_length |
The maximum length of a line. If 0, there is no maximum length. |
indent |
The number of spaces to indent each continuation line. |
method encode
Encode a character as hexadecimal.
DEFINITION
| void encode | ( | char character | ); |
| PARAMETER | DESCRIPTION |
|---|---|
character |
The character to encode. |
method encode
Encode a string as hexadecimal.
DEFINITION
| void encode | ( | const std::string & string | ); |
| PARAMETER | DESCRIPTION |
|---|---|
string |
The string to encode. |