amber/web/text_decoder
Types
Represents a decoder for a specific text encoding, allowing you to convert binary data into a string given the encoding.
pub type TextDecoder
Functions
pub fn decode(input: ArrayBuffer) -> String
Turns binary data, often in the form of a Uint8Array, into a string given the encoding.
pub fn decode_chunk(
decoder: TextDecoder,
input: ArrayBuffer,
) -> String
pub fn decode_with(
input: ArrayBuffer,
label: String,
options: List(TextDecoderOption),
) -> String