zmqpp  4.1.2
C++ bindings for 0mq (libzmq)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
zmqpp::z85 Namespace Reference

Provide z85 encoding and decoding facilities. More...

Functions

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...
 

Detailed Description

Provide z85 encoding and decoding facilities.

Function Documentation

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
stringthe 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_datathe 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
datapointer to raw data to be encoded.
sizethe size of the data to be encoded.
Returns
the encoded string. See ZMQ RFC 32;