Home
last modified time | relevance | path

Searched refs:lz4fRead (Results 1 – 3 of 3) sorted by relevance

/third_party/lz4/lib/
Dlz4file.c57 LZ4F_errorCode_t LZ4F_readOpen(LZ4_readFile_t** lz4fRead, FILE* fp) in LZ4F_readOpen() argument
64 if (fp == NULL || lz4fRead == NULL) { in LZ4F_readOpen()
68 *lz4fRead = (LZ4_readFile_t*)calloc(1, sizeof(LZ4_readFile_t)); in LZ4F_readOpen()
69 if (*lz4fRead == NULL) { in LZ4F_readOpen()
73 ret = LZ4F_createDecompressionContext(&(*lz4fRead)->dctxPtr, LZ4F_getVersion()); in LZ4F_readOpen()
75 free(*lz4fRead); in LZ4F_readOpen()
79 (*lz4fRead)->fp = fp; in LZ4F_readOpen()
80 consumedSize = fread(buf, 1, sizeof(buf), (*lz4fRead)->fp); in LZ4F_readOpen()
82 free(*lz4fRead); in LZ4F_readOpen()
86 ret = LZ4F_getFrameInfo((*lz4fRead)->dctxPtr, &info, buf, &consumedSize); in LZ4F_readOpen()
[all …]
Dlz4file.h52 LZ4FLIB_STATIC_API LZ4F_errorCode_t LZ4F_readOpen(LZ4_readFile_t** lz4fRead, FILE* fp);
60 LZ4FLIB_STATIC_API size_t LZ4F_read(LZ4_readFile_t* lz4fRead, void* buf, size_t size);
66 LZ4FLIB_STATIC_API LZ4F_errorCode_t LZ4F_readClose(LZ4_readFile_t* lz4fRead);
/third_party/lz4/examples/
DfileCompress.c92 LZ4_readFile_t* lz4fRead; in decompress_file() local
98 ret = LZ4F_readOpen(&lz4fRead, f_in); in decompress_file()
106 ret = LZ4F_read(lz4fRead, buf, CHUNK_SIZE); in decompress_file()
125 if (LZ4F_isError(LZ4F_readClose(lz4fRead))) { in decompress_file()