Functions | |
bool | isCODE (SatAddr src) |
is the object at src a CODE object? | |
bool | CODEdecode (SatAddr src, char *dst, int *nibbles) |
extract the code | |
SatAddr | CODEencode (const char *src, const int nibbles, SatAddr dst) |
construct a CODE object | |
SatAddr | makeCODE (unsigned nibbles) |
Allocate a new CODE object. | |
int | CODEnibbles (SatAddr src) |
Return the number of nibbles in a CODE object. | |
int | CODEbytes (SatAddr src) |
int CODEbytes | ( | SatAddr | src | ) |
brief Return the number of bytes required to store the data in a CODE object
src | The Saturn address of a CODE object |
bool CODEdecode | ( | SatAddr | src, | |
char * | dst, | |||
int * | nibbles | |||
) |
extract the code
src | Saturn address of a CODE object | |
dst | If non-null, then the contents of the code object will be copied here. Dst must point to sufficient space to store the code. See CODEbytes(). | |
nibbles | If non-null, then the number of nibbles of CODE data is stored here. |
construct a CODE object
src | The data to be stored in the CODE object | |
nibbles | The number of nibbles in src to store. | |
dst | If non-null, then this is the Saturn address where the CODE object should be stored. If null, the a new CODE object is allocated in tempOb. |
int CODEnibbles | ( | SatAddr | src | ) |
Return the number of nibbles in a CODE object.
src | Saturn address of a CODE object. |
bool isCODE | ( | SatAddr | src | ) |
is the object at src a CODE object?
src | Saturn address of an object |
SatAddr makeCODE | ( | unsigned | nibbles | ) |
Allocate a new CODE object.
nibbles | The number of nibbles of code data in the object |