Functions | |
bool | isZINT (SatAddr src) |
is object an infinite precision integer (ZINT)? | |
bool | ZINTdecodell (SatAddr src, long long *dst) |
Convert a ZINT to C long long. | |
SatAddr | ZINTencodell (long long src, SatAddr dst) |
Convert a C long long to an HP ZINT. | |
char * | ZINTdecodeStr (SatAddr src, char *str) |
Convert a ZINT to a NULL-terminated C string of ASCII digits. | |
SatAddr | ZINTencodeStr (const char *src, SatAddr dst) |
Convert a NULL-terminated C string if ASCII digits to an HP ZINT. | |
SatAddr | makeZINT (int digits) |
Make a ZINT in TEMPOB with room for "digits" digits. | |
int | ZINTnibbles (SatAddr src) |
The size of a ZINT in nibbles. | |
int | ZINTdigits (SatAddr src) |
Get the number of digits in a ZINT. | |
int | ZINTbytes (SatAddr src) |
Return the number of bytes needed to store a ZINT as a string. |
bool isZINT | ( | SatAddr | src | ) |
is object an infinite precision integer (ZINT)?
src | Saturn address of an object |
int ZINTbytes | ( | SatAddr | src | ) |
Return the number of bytes needed to store a ZINT as a string.
src | The Saturn address of the ZINT |
bool ZINTdecodell | ( | SatAddr | src, | |
long long * | dst | |||
) |
Convert a ZINT to C long long.
src | The ZINT to decode | |
dst | Where to store the ZINT's value |
char* ZINTdecodeStr | ( | SatAddr | src, | |
char * | str | |||
) |
Convert a ZINT to a NULL-terminated C string of ASCII digits.
src | The ZINT to decode | |
dst | Where to store the ZINT's value. If set, then dst must contain enough space for the number, which you can get from ZINTbytes(). IF dst is zero, then sufficient space is allocated for the string and the caller must free the space. |
int ZINTdigits | ( | SatAddr | src | ) |
Get the number of digits in a ZINT.
src | The Saturn address of the ZINT |
Convert a C long long to an HP ZINT.
src | The long long to convert. | |
dst | If non-zero then dst must contain exactly enough room for the ZINT. If zero then a new ZINT is created. |
Convert a NULL-terminated C string if ASCII digits to an HP ZINT.
src | The string to convert. For example, "12345" | |
dst | Where to store the ZINT. If non-zero then dst must contain exactly the right amount of space for the resulting ZINT. If zero, then the space will be allocated in TEMPOB. |
int ZINTnibbles | ( | SatAddr | src | ) |
The size of a ZINT in nibbles.
src | Saturn address of the ZINT. |