Lines Matching refs:inpFp
56 void test_compress(FILE* outFp, FILE* inpFp, void *dict, int dictSize) in test_compress() argument
75 const int inpBytes = (int) read_bin(inpFp, inpBuf, BLOCK_BYTES); in test_compress()
105 void test_decompress(FILE* outFp, FILE* inpFp, void *dict, int dictSize, int offset, int length) in test_decompress() argument
123 size_t read = read_bin(inpFp, magic, sizeof(magic)); in test_decompress()
133 seek_bin(inpFp, -4, SEEK_END); in test_decompress()
134 read_int(inpFp, &numOffsets); in test_decompress()
136 seek_bin(inpFp, -4 * (numOffsets + 1), SEEK_END); in test_decompress()
138 read_int(inpFp, offsetsPtr++); in test_decompress()
142 seek_bin(inpFp, offsets[currentBlock], SEEK_SET); in test_decompress()
151 const size_t read = read_bin(inpFp, cmpBuf, (size_t)cmpBytes); in test_decompress()
237 FILE* inpFp = fopen(inpFilename, "rb"); in main() local
241 test_compress(outFp, inpFp, dict, dictSize); in main()
245 fclose(inpFp); in main()
250 FILE* inpFp = fopen(lz4Filename, "rb"); in main() local
254 test_decompress(outFp, inpFp, dict, DICTIONARY_BYTES, offset, length); in main()
258 fclose(inpFp); in main()
263 FILE* inpFp = fopen(inpFilename, "rb"); in main() local
265 seek_bin(inpFp, offset, SEEK_SET); in main()
268 const int cmp = compare(inpFp, decFp, length); in main()
276 fclose(inpFp); in main()