gossamer/text_decoder

Types

pub type TextDecoder

Values

pub fn decode(input: array_buffer.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: array_buffer.ArrayBuffer,
) -> Result(String, String)
pub fn decode_with(
  input: array_buffer.ArrayBuffer,
  label: String,
  with options: List(text_decoder_option.TextDecoderOption),
) -> Result(String, String)
pub fn encoding(of decoder: TextDecoder) -> encoding.Encoding
pub fn flush(decoder: TextDecoder) -> Result(String, String)
pub fn is_fatal(decoder: TextDecoder) -> Bool
pub fn is_ignore_bom(decoder: TextDecoder) -> Bool
pub fn new() -> TextDecoder
pub fn new_with(
  label: String,
  with options: List(text_decoder_option.TextDecoderOption),
) -> Result(TextDecoder, String)
Search Document