Function z85Encode

Encodes a binary key as Z85 printable text.

char[] z85Encode (
  ubyte[] data,
  char[] dest
) @safe;

char[] z85Encode (
  ubyte[] data
) @safe;

dest must be an array whose length is at least 5*data.length/4 + 1, which will be used to store the return value plus a terminating zero byte. If dest is omitted, a new array will be created.

Returns

An array of size 5*data.length/4 which contains the Z85-encoded text, excluding the terminating zero byte. This will be a slice of dest if it is provided.

Throws

core.exception.RangeError if dest is given but is too small. ZmqException if ZeroMQ reports an error (i.e., if data.length is not a multiple of 4).

Corresponds to

zmq_z85_encode()