コンテンツにスキップ

ByteArray⚓︎

ByteArray
Represents a fixed size byte array.

Extended by⚓︎

Constructors⚓︎

new ByteArray()⚓︎

new ByteArray(fixedSize, arrayInput): ByteArray

Creates a byte array.

Parameters⚓︎

Parameter Type Description
fixedSize number Size of the array.
arrayInput string | Uint8Array<ArrayBufferLike> Byte array or hex string.

Returns⚓︎

ByteArray

Properties⚓︎

Property Modifier Type Description
bytes public Uint8Array Underlying bytes.
NAME static string Byte array name (required because constructor.name is dropped during minification).

Methods⚓︎

toJson()⚓︎

toJson(): string

ByteArray.toJson
Returns representation of this object that can be stored in JSON.

Returns⚓︎

string

JSON-safe representation of this object.


toString()⚓︎

toString(): string

ByteArray.toString
Returns string representation of this object.

Returns⚓︎

string

String representation of this object