Classes

BufferUtils

Constructors

new BufferUtils()

new BufferUtils(): [BufferUtils](BufferUtils)

Properties

_BASE64_LOOKUP

`static` \_BASE64\_LOOKUP: `string`[]

BASE32_ALPHABET

`static` BASE32\_ALPHABET: `object`

NIMIQ

NIMIQ: `string`

RFC4648

RFC4648: `string`

RFC4648_HEX

RFC4648\_HEX: `string`

BASE64_ALPHABET

`static` BASE64\_ALPHABET: `string`

HEX_ALPHABET

`static` HEX\_ALPHABET: `string`

Methods

_base64encodeChunk()

`static` \_base64encodeChunk(`u8`, `start`, `end`): `string`
ParameterType
Firstnumber

_base64fromByteArray()

`static` \_base64fromByteArray(`u8`): `string`
ParameterType
FirstUint8Array

_codePointTextDecoder()

`static` \_codePointTextDecoder(`buffer`): `string`
ParameterType
FirstUint8Array

_tripletToBase64()

`static` \_tripletToBase64(`num`): `string`
ParameterType
Firstnumber

compare()

`static` compare(`param23`, `b`): `number`

Returns -1 if a is smaller than b, 1 if a is larger than b, 0 if a equals b. Shorter arrays are always considered smaller than longer ones.

ParameterType
FirstTypedArray

equals()

`static` equals(`param22`, `b`): `boolean`
ParameterType
FirstTypedArray

fromAny()

`static` fromAny(`param23`, `length`?): [SerialBuffer](SerialBuffer)
ParameterType
Firstnumber

fromBase32()

`static` fromBase32(`base32`, `alphabet`?): `Uint8Array`
ParameterType
Firststring

fromBase64()

`static` fromBase64(`base64`, `length`?): [SerialBuffer](SerialBuffer)
ParameterType
Firstnumber

fromBase64Url()

`static` fromBase64Url(`base64`, `length`?): [SerialBuffer](SerialBuffer)
ParameterType
Firstnumber

fromHex()

`static` fromHex(`hex`, `length`?): [SerialBuffer](SerialBuffer)
ParameterType
Firstnumber

fromUtf8()

`static` fromUtf8(`str`): `Uint8Array`
ParameterType
Firststring

toBase32()

`static` toBase32(`buf`, `alphabet`?): `string`
ParameterType
Firststring

toBase64()

`static` toBase64(`buffer`): `string`
ParameterType
FirstUint8Array

toBase64Url()

`static` toBase64Url(`buffer`): `string`
ParameterType
FirstUint8Array

toHex()

`static` toHex(`buffer`): `string`
ParameterType
FirstUint8Array

toUtf8()

`static` toUtf8(`buf`): `string`
ParameterType
FirstTypedArray

xor()

`static` xor(`param19`, `b`): `Uint8Array`
ParameterType
FirstUint8Array