Defines | |
#define | SAT_DOLIBDATA SAT_DOEXT0 |
LIBDATA uses the EXT0 prolog. | |
Functions | |
bool | isLIBDATA (SatAddr src) |
is the object at src a LIBDATA object? | |
int | LIBDATAnibbles (SatAddr src) |
Return the number of nibbles in a LIBDATA object. | |
int | LIBDATAbytes (SatAddr src) |
bool | LIBDATAdecode (SatAddr src, char *data, int *nibbles) |
extract the code Extract a LIBDATA's data and its size. | |
SatAddr | LIBDATAencode (const char *data, int nibbles, SatAddr dst) |
Construct a LIBDATA object. | |
SatAddr | makeLIBDATA (unsigned nibbles) |
Allocate a new LIBDATA object. |
bool isLIBDATA | ( | SatAddr | src | ) |
is the object at src a LIBDATA object?
src | Saturn address of an object |
int LIBDATAbytes | ( | SatAddr | src | ) |
brief Return the number of bytes required to store the data in a LIBDATA object
src | The Saturn address of a LIBDATA object |
bool LIBDATAdecode | ( | SatAddr | src, | |
char * | data, | |||
int * | nibbles | |||
) |
extract the code Extract a LIBDATA's data and its size.
src | Saturn address of a LIBDATA object | |
data | If non-null, then the contents of the LIBDATA object will be copied here. Data must point to sufficient space to store the data. See LIBDATAbytes(). | |
nibbles | If non-null, then the number of nibbles of LIBDATA data is stored here. |
Construct a LIBDATA object.
data | The data to be stored in the LIBDATA object | |
nibbles | The number of nibbles in data to store. | |
dst | If non-null, then this is the Saturn address where the LIBDATA object will be stored. If null, then a new LIBDATA object is allocated in tempOb. |
int LIBDATAnibbles | ( | SatAddr | src | ) |
Return the number of nibbles in a LIBDATA object.
src | Saturn address of a LIBDATA object. |
SatAddr makeLIBDATA | ( | unsigned | nibbles | ) |
Allocate a new LIBDATA object.
nibbles | The number of nibbles of LIBDATA data in the object |