9 unsigned char *dstStop, tmp;
17 dstStop = dst + nofNums;
20 while (dst != dstStop) {
21 tmp = ((*src++ / d) % 256);
23 nBytes =
G3D_MIN(nBytes, eltLength);
36 G3d_longDecode(
unsigned char *source,
long *dst,
int nofNums,
int longNbytes)
40 unsigned char *srcStop;
42 eltLength = longNbytes;
44 source += nofNums * eltLength - 1;
47 srcStop = source - nofNums;
50 while (source != srcStop) {
58 srcStop = source - nofNums;
61 while (source != srcStop) {
int G3d_longEncode(long *source, unsigned char *dst, int nofNums)
void G3d_longDecode(unsigned char *source, long *dst, int nofNums, int longNbytes)
void G3d_fatalError(const char *,...)
This function prints the error message msg, and terminates the program with an error status...