コンテンツにスキップ

BaseValue⚓︎

BaseValue
Represents a base integer.

Extended by⚓︎

Constructors⚓︎

new BaseValue()⚓︎

new BaseValue(
   size, 
   value, 
   isSigned?): BaseValue

Creates a base value.

Parameters⚓︎

Parameter Type Description
size number Size of the integer.
value number | bigint Value.
isSigned? boolean \c true if the value should be treated as signed.

Returns⚓︎

BaseValue

Properties⚓︎

Property Type Description
isSigned boolean \c true if the value should be treated as signed.
size number Size of the integer.
value number | bigint Value.

Methods⚓︎

toJson()⚓︎

toJson(): string | number

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

Returns⚓︎

string | number

JSON-safe representation of this object.


toString()⚓︎

toString(): string

BaseValue.toString
Converts base value to string.

Returns⚓︎

string

String representation.