njs/text_decoder

Types

pub type TextDecodeOptions {
  TextDecodeOptions(stream: Bool)
}

Constructors

  • TextDecodeOptions(stream: Bool)
pub type TextDecoder
pub type TextDecoderOptions {
  TextDecoderOptions(fatal: Bool)
}

Constructors

  • TextDecoderOptions(fatal: Bool)

Values

pub fn decode(
  decoder: TextDecoder,
  buffer: buffer.ArrayBuffer,
  options: o,
) -> String
pub fn encoding(decoder: TextDecoder) -> String
pub fn fatal(decoder: TextDecoder) -> Bool
pub fn ignore_bom(decoder: TextDecoder) -> Bool
pub fn new(encoding: String, options: o) -> TextDecoder
Search Document