Home
last modified time | relevance | path

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

/third_party/lz4/lib/
Dlz4file.c181 LZ4F_errorCode_t LZ4F_writeOpen(LZ4_writeFile_t** lz4fWrite, FILE* fp, const LZ4F_preferences_t* pr… in LZ4F_writeOpen() argument
186 if (fp == NULL || lz4fWrite == NULL) in LZ4F_writeOpen()
189 *lz4fWrite = (LZ4_writeFile_t*)malloc(sizeof(LZ4_writeFile_t)); in LZ4F_writeOpen()
190 if (*lz4fWrite == NULL) { in LZ4F_writeOpen()
197 (*lz4fWrite)->maxWriteSize = 64 * 1024; in LZ4F_writeOpen()
200 (*lz4fWrite)->maxWriteSize = 256 * 1024; in LZ4F_writeOpen()
203 (*lz4fWrite)->maxWriteSize = 1 * 1024 * 1024; in LZ4F_writeOpen()
206 (*lz4fWrite)->maxWriteSize = 4 * 1024 * 1024; in LZ4F_writeOpen()
209 free(lz4fWrite); in LZ4F_writeOpen()
213 (*lz4fWrite)->maxWriteSize = 64 * 1024; in LZ4F_writeOpen()
[all …]
Dlz4file.h73 LZ4FLIB_STATIC_API LZ4F_errorCode_t LZ4F_writeOpen(LZ4_writeFile_t** lz4fWrite, FILE* fp, const LZ4…
81 LZ4FLIB_STATIC_API size_t LZ4F_write(LZ4_writeFile_t* lz4fWrite, void* buf, size_t size);
87 LZ4FLIB_STATIC_API LZ4F_errorCode_t LZ4F_writeClose(LZ4_writeFile_t* lz4fWrite);
/third_party/lz4/examples/
DfileCompress.c40 LZ4_writeFile_t* lz4fWrite; in compress_file() local
50 ret = LZ4F_writeOpen(&lz4fWrite, f_out, NULL); in compress_file()
70 ret = LZ4F_write(lz4fWrite, buf, len); in compress_file()
79 if (LZ4F_isError(LZ4F_writeClose(lz4fWrite))) { in compress_file()