rong_encoding 0.3.0

Encoding module for RongJS
1
2
3
4
5
6
7
8
9
10
11
12
# rong_encoding

Implements the Web Encoding API for text encoding and decoding.

## JS APIs

- `TextEncoder` — encodes strings to UTF-8 `Uint8Array`
  - `encode(input)` — encode a string
  - `encodeInto(input, destination)` — encode into an existing buffer
- `TextDecoder` — decodes byte sequences to strings
  - `new TextDecoder(label?, options?)` — create a decoder for a given encoding
  - `decode(input?, options?)` — decode bytes to a string