Searched refs:inpFp (Results 1 – 4 of 4) sorted by relevance
/external/lz4/examples/ |
D | blockStreaming_lineByLine.c | 36 FILE* inpFp, in test_compress() argument 52 const int inpBytes = (int) read_bin(inpFp, inpPtr, randomLength); in test_compress() 57 if (!fgets(inpPtr, (int) messageMaxBytes, inpFp)) in test_compress() 84 FILE* inpFp, in test_decompress() argument 97 if (read_uint16(inpFp, &cmpBytes) != 1) break; in test_decompress() 99 if (read_bin(inpFp, cmpBuf, cmpBytes) != cmpBytes) break; in test_decompress() 171 FILE* inpFp = fopen(inpFilename, "rb"); in main() local 174 test_compress(outFp, inpFp, MESSAGE_MAX_BYTES, RING_BUFFER_BYTES); in main() 177 fclose(inpFp); in main() 182 FILE* inpFp = fopen(lz4Filename, "rb"); in main() local [all …]
|
D | blockStreaming_doubleBuffer.c | 36 void test_compress(FILE* outFp, FILE* inpFp) in test_compress() argument 46 const int inpBytes = (int) read_bin(inpFp, inpPtr, BLOCK_BYTES); in test_compress() 69 void test_decompress(FILE* outFp, FILE* inpFp) in test_decompress() argument 82 const size_t readCount0 = read_int(inpFp, &cmpBytes); in test_decompress() 87 const size_t readCount1 = read_bin(inpFp, cmpBuf, (size_t) cmpBytes); in test_decompress() 153 FILE* inpFp = fopen(inpFilename, "rb"); in main() local 157 test_compress(outFp, inpFp); in main() 161 fclose(inpFp); in main() 166 FILE* inpFp = fopen(lz4Filename, "rb"); in main() local 170 test_decompress(outFp, inpFp); in main() [all …]
|
D | blockStreaming_ringBuffer.c | 51 void test_compress(FILE* outFp, FILE* inpFp) in test_compress() argument 63 const int inpBytes = (int) read_bin(inpFp, inpPtr, randomLength); in test_compress() 84 void test_decompress(FILE* outFp, FILE* inpFp) in test_decompress() argument 96 const size_t r0 = read_int32(inpFp, &cmpBytes); in test_decompress() 99 const size_t r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress() 163 FILE* inpFp = fopen(inpFilename, "rb"); in main() local 166 test_compress(outFp, inpFp); in main() 169 fclose(inpFp); in main() 174 FILE* inpFp = fopen(lz4Filename, "rb"); in main() local 177 test_decompress(outFp, inpFp); in main() [all …]
|
D | HCStreaming_ringBuffer.c | 54 void test_compress(FILE* outFp, FILE* inpFp) in test_compress() argument 67 const int inpBytes = (int) read_bin(inpFp, inpPtr, randomLength); in test_compress() 90 void test_decompress(FILE* outFp, FILE* inpFp) in test_decompress() argument 103 const size_t r0 = read_int32(inpFp, &cmpBytes); in test_decompress() 108 r1 = read_bin(inpFp, cmpBuf, cmpBytes); in test_decompress() 196 FILE* inpFp = fopen(inpFilename, "rb"); in main() local 199 test_compress(outFp, inpFp); in main() 202 fclose(inpFp); in main() 207 FILE* inpFp = fopen(lz4Filename, "rb"); in main() local 210 test_decompress(outFp, inpFp); in main() [all …]
|