Options
All
  • Public
  • Public/Protected
  • All
Menu

A class that converts strings to UInt8Array buffers.

Hierarchy

  • TextEncoder

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

encoding

  • get encoding(): string
  • Always returns 'utf-8'.

    Returns string

Methods

encode

  • encode(buf: string): Uint8Array
  • Encodes the given string to a UTF-8 encoded buffer.

    Parameters

    • buf: string

    Returns Uint8Array

Generated using TypeDoc