libnexa-ts
Version:
A pure and powerful Nexa SDK library.
23 lines • 716 B
TypeScript
export default class Base32 {
/***
* Charset containing the 32 symbols used in the base32 encoding.
*/
private static readonly CHARSET;
/***
* Inverted index mapping each symbol into its index within the charset.
*/
private static readonly CHARSET_INVERSE_INDEX;
/***
* Encodes the given array of 5-bit integers as a base32-encoded string.
*
* @param data Array of integers between 0 and 31 inclusive.
*/
static encode(data: number[]): string;
/***
* Decodes the given base32-encoded string into an array of 5-bit integers.
*
* @param base32
*/
static decode(base32: string): number[];
}
//# sourceMappingURL=base32.d.ts.map