@std/data/encoding_stream.ms#
Import each required symbol with import Name from "@std/data/encoding_stream.ms".
base64_decoded Function#
Decodes Base64 text chunks into bytes. Malformed text fails the read with EBADMSG;
text that ends inside a group fails at the end of the stream. Closing the result
closes input.
Manuscript
fn base64_decoded(move input ReadStream[String], url_safe Bool = false) ReadStream[Bytes] { ... }base64_encoded Function#
Encodes a byte stream as Base64 text chunks that concatenate to the whole encoding,
with padding at the end. Set url_safe: true for the URL-safe alphabet. Closing the
result closes input.
Manuscript
fn base64_encoded(move input ReadStream[Bytes], url_safe Bool = false) ReadStream[String] { ... }hex_decoded Function#
Decodes hexadecimal text chunks into bytes. Malformed text, or text that ends inside
a pair, fails the read with EBADMSG. Closing the result closes input.
Manuscript
fn hex_decoded(move input ReadStream[String]) ReadStream[Bytes] { ... }hex_encoded Function#
Encodes a byte stream as lowercase hexadecimal text chunks. Closing the result closes
input.
Manuscript
fn hex_encoded(move input ReadStream[Bytes]) ReadStream[String] { ... }