Base64 encoding and decoding.
Translating a buffer into a Base64 string is useful for those places which do not understand buffers natively (eg. JSON).
Base64 encoding and decoding. Translating a buffer into a Base64 string is useful for those places which do not understand buffers natively (eg. JSON).
(decode string)
(decode string)
(decode string make-buffer)
Decodes a string into a [[view]] according to the Base64 basic scheme (RFC 4648 section 4).
In JS, the view might be slightly larger than the buffer it wraps since the algorithm sometimes allocates a tiny bit more memory than ultimately needed.
The buffer can be retrieved from the view by using helins.binf/backing-buffer
.
Decodes a string into a [[view]] according to the Base64 basic scheme (RFC 4648 section 4). In JS, the view might be slightly larger than the buffer it wraps since the algorithm sometimes allocates a tiny bit more memory than ultimately needed. The buffer can be retrieved from the view by using [[helins.binf/backing-buffer]].
(encode buffer)
(encode buffer offset)
(encode buffer offset n-byte)
Encodes a buffer
into a string according to the Base64 basic scheme (RFC 4648 section 4)
Encodes a `buffer` into a string according to the Base64 basic scheme (RFC 4648 section 4)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close