Functions | |
bool | isHXS (SatAddr src) |
is the object at src a HXS | |
bool | HXSdecodell (SatAddr src, unsigned long long *dst) |
decode a HXS into an unsigned long long. | |
SatAddr | HXSencodell (unsigned long long i, SatAddr dst) |
Convert an unsigned long long to a HXS object. | |
bool | HXSdecode (SatAddr src, char *buf, int *nibbles) |
Extract the data and/or size of an HXS. | |
SatAddr | HXSencode (char *buf, int nibbles, SatAddr dst) |
Create an HXS object from a data buffer. | |
int | HXSnibbles (SatAddr src) |
Return the size in nibbles of the HXS object at src. | |
int | HXSbytes (SatAddr src) |
Return the number of bytes required to store the data in an HXS. | |
SatAddr | makeHXS (int nibbles) |
Create an HXS. |
int HXSbytes | ( | SatAddr | src | ) |
Return the number of bytes required to store the data in an HXS.
src | Saturn address of an HXS |
bool HXSdecode | ( | SatAddr | src, | |
char * | buf, | |||
int * | nibbles | |||
) |
Extract the data and/or size of an HXS.
src | The Saturn address of a HXS | |
buf | A charcter buffer to receive the data, or zero if you don't want to copy the data | |
nibbles | If non zero, the number of data nibbles in the HXS will be copied here. |
bool HXSdecodell | ( | SatAddr | src, | |
unsigned long long * | dst | |||
) |
decode a HXS into an unsigned long long.
src | The Saturn address of a HXS | |
dst | pointer to where the result will be stored. |
Create an HXS object from a data buffer.
buf | pointer to the data to put in the HXS | |
nibbles | number of nibbles in buf to copy. | |
dst | The Saturn address of the buffer to recieve the HXS, or zero to create a new buffer. |
Convert an unsigned long long to a HXS object.
i | the unsigned long long to convert | |
dst | Saturn address where the HXS will be stored, or zero to allocate a new one. |
int HXSnibbles | ( | SatAddr | src | ) |
Return the size in nibbles of the HXS object at src.
src | Saturn address of an HXS |
bool isHXS | ( | SatAddr | src | ) |
is the object at src a HXS
src | Saturn address of an object |
SatAddr makeHXS | ( | int | nibbles | ) |
Create an HXS.
nibbles | the number of data nibbles in the HXS |