Functions | |
bool | isMATRIX (SatAddr src) |
is the object a MATRIX | |
SatAddr | makeMATRIX (SatAddr obj, unsigned nibbles) |
Allocate space for a MATRIX with "nibbles" data and put a copy of "obj" in it. | |
void | MATRIXinit (SatAddr obj, SatAddr dst) |
Write a new matrix at "dst" and insert a copy of "obj" into it. | |
int | MATRIXnibbles (SatAddr src) |
Return the size in nibbles of the MATRIX at src. | |
int | MATRIXsize (SatAddr src) |
Same as LISTsize() but operates on a MATRIX. | |
bool | MATRIXadd (SatAddr dst, SatAddr obj) |
Same as LISTadd() but operates on a MATRIX. | |
SatAddr | MATRIXcat (SatAddr MATRIX, SatAddr obj) |
Same as LISTcat() but operates on a MATRIX. | |
SatAddr | MATRIXmerge (SatAddr MATRIX1, SatAddr MATRIX2) |
Same as LISTmerge() but operates on a MATRIX. | |
SatAddr | MATRIXencodeV (SatAddr dst,...) |
Same as LISTencode() but operates on a MATRIX. | |
SatAddr | MATRIXencodeN (int n, SatAddr obs[], SatAddr dst) |
Same as LISTencodeN() but operates on a MATRIX. | |
SatAddr | MATRIXfirstOb (SatAddr matrix, SatAddr *iter) |
Same as LISTfirstOb() but operates on a MATRIX. | |
SatAddr | MATRIXnextOb (SatAddr *iter) |
Same as LISTnextOb() but operates on a MATRIX. | |
SatAddr | MATRIXfirstEntry (SatAddr matrix) |
Same as LISTfirstEntry() but operates on a MATRIX. | |
SatAddr | MATRIXnextEntry (SatAddr entry) |
Same as LISTnextEntry() but operates on a MATRIX. |
Most of the functions for a MATRIX work the same as the equivalent LIST functions.
bool isMATRIX | ( | SatAddr | src | ) |
is the object a MATRIX
src | Saturn address of an object. |
Allocate space for a MATRIX with "nibbles" data and put a copy of "obj" in it.
This allocates space for a MATRIC with nibbles data in it and puts an empty list at the beginning of the allocated space.
nibbles | the number of nibbles to allocate | |
obj | Saturn address of the object (or pointer to object) to copy into the MATRIX |
Write a new matrix at "dst" and insert a copy of "obj" into it.
obj | Saturn address of an object or pointer to an object | |
dst | Saturn address of the destination. |
int MATRIXnibbles | ( | SatAddr | src | ) |
Return the size in nibbles of the MATRIX at src.
src | the Saturn address of a MATRIX object |