@proto-kit/libraryDocs


Documentation / @proto-kit/library / UIntConstructor

Type Alias: UIntConstructor<BITS>

UIntConstructor<BITS>: object

Type Parameters

BITS extends number

Type declaration

Safe

Safe: object

Safe.fromField()

Parameters

x: Field

Returns

UInt<BITS>

Unsafe

Unsafe: object

Unsafe.fromField()

Parameters

x: Field

Returns

UInt<BITS>

max

Get Signature

get max(): UInt<BITS>

Returns

UInt<BITS>

zero

Get Signature

get zero(): UInt<BITS>

Returns

UInt<BITS>

check()

Parameters

x

x.value: Field

Returns

void

from()

Parameters

x: string | number | bigint | UInt<BITS>

Returns

UInt<BITS>

Defined in

packages/library/src/math/UInt.ts:23