Functions for working with base64 encodings.
Functions for working with base64 encodings.
(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.
(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.
(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.
(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.
(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.
(encode input)
(encode input offset length)
Returns a base64 encoded byte array.
Returns a base64 encoded byte array.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close