haxe-basecode

0.0.8 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i haxe-basecode

Weekly Downloads

2

Version

0.0.8

License

MIT

Unpacked Size

5.19 kB

Total Files

5

Last publish

Collaborators

  • angelisium