Skip to main content

NewUint32

Creates a new Uint32 object with the provided uint32 value.

def NewUint32(
v: uint32
) - > Uint32

Creates a new Uint32 object from a given unsigned 32-bit integer. This function is used to wrap a primitive uint32 value into a custom Uint32 type.

Parameters

NameTypeDescription
vuint32The unsigned 32-bit integer value to encapsulate within the new Uint32 object.

Returns

TypeDescription
Uint32A new Uint32 object initialized with the provided value.