Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 1.12 KB

readme.md

File metadata and controls

66 lines (48 loc) · 1.12 KB

npm tests GitHub

Allows one to encode / decode String and bytes using a power of two base dictionary.

Note
If you are looking for how to use it, you can look at some examples in the unit tests.

Constructor

new BaseCode(base: Bytes)

Variables

public base: Bytes
public nbits: Int
public tbl: Array

Methods

static decode(s: String, base: String): String
static encode(s: String, base: String): String
public initTable(): void
public encodeBytes(b: Bytes): Bytes
public decodeBytes(b: Bytes): Bytes
public encodeString(s: String): String
public decodeString(s: String): String