z85Encode

Encodes a binary key as Z85 printable text.

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.

  1. char[] z85Encode(ubyte[] data, char[] dest)
  2. char[] z85Encode(ubyte[] data)
    @safe
    char[]
    z85Encode
    (
    ubyte[] data
    )

Return Value

Type: char[]

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

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

Corresponds to

$(ZMQREF zmq_z85_encode())

Meta