Provide z85 encoding and decoding facilities.
More...
|
std::string | encode (const std::string &raw_data) |
| Encode a binary string into a string using Z85 representation. More...
|
|
std::string | encode (const uint8_t *data, size_t size) |
| Encode a binary blob into a string using Z85 representation. More...
|
|
std::vector< uint8_t > | decode (const std::string &string) |
| Decode a Z85 encoded string into a binary blob represented as a vector. More...
|
|
Provide z85 encoding and decoding facilities.
std::vector< uint8_t > zmqpp::z85::decode |
( |
const std::string & |
string | ) |
|
Decode a Z85 encoded string into a binary blob represented as a vector.
- Parameters
-
string | the string to be decoded. |
- Returns
- a vector of uint8_t: the binary block after string decoding.
std::string zmqpp::z85::encode |
( |
const std::string & |
raw_data | ) |
|
Encode a binary string into a string using Z85 representation.
- Parameters
-
raw_data | the binary string to be encoded. |
- Returns
- the encoded string. See ZMQ RFC 32;
std::string zmqpp::z85::encode |
( |
const uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
Encode a binary blob into a string using Z85 representation.
- Parameters
-
data | pointer to raw data to be encoded. |
size | the size of the data to be encoded. |
- Returns
- the encoded string. See ZMQ RFC 32;