array.uint32
import array
Everything here is re-exported by
array, soimport arrayis enough and the names are called asarray.*. Importingarray.uint32on its own works too and reaches the same definitions.
UInt32Array: a packed array of unsigned 32-bit integers, 4 bytes per
element.
UINT32_MAX and UINT32_MIN bound what an element may be; a value
outside them raises rather than wrapping.
Constants
UINT32_MAX
array.UINT32_MAX: number = 4294967295
Maximum value that “should” exist in a list passed to UInt32Array.
Classes
UInt32Array
class array.UInt32Array < Array
class UInt32Array represents an array of twos-complement 32-bit unsigned integers in the platform byte order.
- printable — has a
@to_string(), soechoandprint()show something useful - serializable — has a
@to_json(), so it can be handed straight tojson.encode() - valueable — has a
@to_value(), so it converts to a plain Zuri value
UInt32Array.reverse()
array.UInt32Array.reverse() -> UInt32Array
Returns a new array containing the elements in the original array in reverse order.
Returns UInt32Array
UInt32Array.clone()
array.UInt32Array.clone() -> UInt32Array
Returns a new UInt32Array containing all items from the current array. The new array is a shallow copy of the original array.
Returns UInt32Array
UInt32Array.slice()
array.UInt32Array.slice(start, end) -> UInt32Array
Returns a new UInt32Array over [start, end) of this array (both
default to the whole array; negative bounds count from the end).
Parameters
start(?number)end(?number)
Returns UInt32Array
2021, Richard Ore and Zuri contributors