static char *streamLZFTextToString(uchar *s, uint32 *len) { uint32 clen; uint32 oclen = streamIntToUInt(s, &clen, &fdum); char *buf = malloc(oclen); /* FREE ME 035 */ int llen = *len - clen; *len = lzf_decompress(s + clen, llen, buf, oclen); return buf; }
int btIntCmp(void *a, void *b) { //printf("btIntCmp\n"); uint32 key1 = streamIntToUInt(a, NULL); uint32 key2 = streamIntToUInt(b, NULL); return key1 == key2 ? 0 : (key1 > key2) ? 1 : -1; }