Liking cljdoc? Tell your friends :D

clojure.data.codec.base64

Functions for working with base64 encodings.

Functions for working with base64 encodings.
raw docstring

dec-lengthclj

(dec-length in-length pad-length)

Calculates what would be the length after decoding of an input array of length in-length with the specified padding length.

Calculates what would be the length after decoding of an input array of length
in-length with the specified padding length.
sourceraw docstring

decodeclj

(decode input)
(decode input offset length)

Returns a base64 decoded byte array.

Note: length must be a multiple of 4.

Returns a base64 decoded byte array.

Note: length must be a multiple of 4.
sourceraw docstring

decode!clj

(decode! input offset length output)

Reads from the input byte array for the specified length starting at the offset index, and base64 decodes into the output array starting at index 0. Returns the length written to output.

Note: length must be a multiple of 4.

Reads from the input byte array for the specified length starting at the offset
index, and base64 decodes into the output array starting at index 0. Returns the
length written to output.

Note: length must be a multiple of 4.
sourceraw docstring

decoding-transferclj

(decoding-transfer input-stream output-stream & opts)

Base64 decodes from input-stream to output-stream. Returns nil or throws IOException.

Options are key/value pairs and may be one of :buffer-size read buffer size to use, must be a multiple of 4; default is 8192.

Base64 decodes from input-stream to output-stream. Returns nil or throws IOException.

Options are key/value pairs and may be one of
  :buffer-size  read buffer size to use, must be a multiple of 4; default is 8192.
sourceraw docstring

enc-lengthclj

(enc-length n)

Calculates what would be the length after encoding of an input array of length n.

Calculates what would be the length after encoding of an input array of length n.
sourceraw docstring

encodeclj

(encode input)
(encode input offset length)

Returns a base64 encoded byte array.

Returns a base64 encoded byte array.
sourceraw docstring

encode!clj

(encode! input offset length output)

Reads from the input byte array for the specified length starting at the offset index, and base64 encodes into the output array starting at index 0. Returns the length written to output.

Note: if using partial input, length must be a multiple of 3 to avoid padding.

Reads from the input byte array for the specified length starting at the offset
index, and base64 encodes into the output array starting at index 0. Returns the
length written to output.

Note: if using partial input, length must be a multiple of 3 to avoid padding.
sourceraw docstring

encoding-transferclj

(encoding-transfer input-stream output-stream & opts)

Base64 encodes from input-stream to output-stream. Returns nil or throws IOException.

Options are key/value pairs and may be one of :buffer-size read buffer size to use, must be a multiple of 3; default is 6144.

Base64 encodes from input-stream to output-stream. Returns nil or throws IOException.

Options are key/value pairs and may be one of
  :buffer-size  read buffer size to use, must be a multiple of 3; default is 6144.
sourceraw docstring

pad-lengthclj

(pad-length input offset length)

Returns the length of padding on the end of the input array.

Returns the length of padding on the end of the input array.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close