Module pico8lib.uint32

Unsigned 32-bit Integers

Class uint32

uint32.raw Internal raw represenation of the uint32 value as a 16.16 fixed point number
uint32.overflow Overflow flag
uint32.repr Cached decimal formatted representation
uint32.repr_raw Last raw value to be converted to decimal
uint32:__eq (a, b) Equality Operation Only called for uint32==uint32
uint32:__lt (a, b) Less Than Operation
uint32:__unm (u) Unary Minus Operation Always underflows for unsigned type
uint32:__add (a, b) Addition Operation
uint32:__sub (a, b) Subtraction Operation
uint32:__mul (a, b) Multiplication Operation
uint32:__concat (a, b) String Concatenation Operation
uint32:from_raw (raw[, overflow]) Create a new uint32 from a raw value and overflow
uint32:create_from_bytes (a, b, c, d[, overflow]) Create a new uint32 from a raw value and overflow
uint32:__call (t, val[, overflow]) Constructor


Class uint32

uint32.raw
Internal raw represenation of the uint32 value as a 16.16 fixed point number
uint32.overflow
Overflow flag
uint32.repr
Cached decimal formatted representation
uint32.repr_raw
Last raw value to be converted to decimal
uint32:__eq (a, b)
Equality Operation Only called for uint32==uint32

Parameters:

Returns:

    Boolean a==b
uint32:__lt (a, b)
Less Than Operation

Parameters:

Returns:

    Boolean a<b
uint32:__unm (u)
Unary Minus Operation Always underflows for unsigned type

Parameters:

Returns:

    uint32 -u
uint32:__add (a, b)
Addition Operation

Parameters:

Returns:

    uint32 a+b
uint32:__sub (a, b)
Subtraction Operation

Parameters:

Returns:

    uint32 a-b
uint32:__mul (a, b)
Multiplication Operation

Parameters:

Returns:

    uint32 a*b
uint32:__concat (a, b)
String Concatenation Operation

Parameters:

Returns:

    string tostr(a) .. tostr(b)
uint32:from_raw (raw[, overflow])
Create a new uint32 from a raw value and overflow

Parameters:

  • raw number
  • overflow Boolean (optional)

Returns:

    uint32
uint32:create_from_bytes (a, b, c, d[, overflow])
Create a new uint32 from a raw value and overflow

Parameters:

  • a int LSB
  • b int
  • c int
  • d int MSB
  • overflow Boolean (optional)

Returns:

    uint32
uint32:__call (t, val[, overflow])
Constructor

Parameters:

  • t class uint32 class
  • val number or uint32
  • overflow Boolean (optional)

Returns:

    uint32
generated by LDoc 1.5.0 Last updated 2024-09-08 18:09:42