18 #define LARGE_NUMBER 1073741824
22 int i, icurrent, irel;
51 irel = data_in[i] - icurrent;
54 if ( (irel <= 127) && (irel >= -127) )
56 if (n_out >= max_out){
60 data_out[n_out] =
static_cast<char>(irel);
66 if ((n_out + 5) >= max_out)
71 data_out[n_out] = -128;
72 byte_pack.i = data_in[i];
73 data_out[n_out+1] = byte_pack.c[0];
74 data_out[n_out+2] = byte_pack.c[1];
75 data_out[n_out+3] = byte_pack.c[2];
76 data_out[n_out+4] = byte_pack.c[3];
79 icurrent = data_in[i];
131 if (n_out + n_from > n_in)
140 for(i=0; i< n_from + n_out; i++)
148 if (data_in[j] != -128)
151 byte_pack.i += data_in[j];
164 byte_pack.c[0] = data_in[j+1];
165 byte_pack.c[1] = data_in[j+2];
166 byte_pack.c[2] = data_in[j+3];
167 byte_pack.c[3] = data_in[j+4];
174 data_out[i-n_from] = byte_pack.i;
179 if (n_out < n_in / 5)
int byte_rel_comp(int *data_in, int n_in, char *data_out, int max_out, int &n_out, DAEstatus &status)
int add(DAEstatus &dstatus, bool clear)
int byte_rel_expn(char *data_in, int n_in, int n_from, int *data_out, int n_out, DAEstatus &status)
int addInfo(int facility, const std::string &text)