OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:prefsPtr
(Results
1 - 3
of
3
) sorted by null
/external/lz4/lib/
lz4frame.h
210
LZ4FLIB_API size_t LZ4F_compressBegin(LZ4F_cctx* cctx, void* dstBuffer, size_t dstCapacity, const LZ4F_preferences_t*
prefsPtr
);
214
* `
prefsPtr
` is optional : you can provide NULL as argument, all preferences will then be set to default.
219
LZ4FLIB_API size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t*
prefsPtr
);
222
*
prefsPtr
is optional : you can provide NULL as argument, preferences will be set to cover worst case scenario.
223
* Result is always the same for a srcSize and
prefsPtr
, so it can be trusted to size reusable buffers.
lz4frame.c
259
*
prefsPtr
is optional : you can provide NULL as argument, preferences will be set to cover worst case scenario.
260
* Result is always the same for a srcSize and
prefsPtr
, so it can be trusted to size reusable buffers.
268
{ const LZ4F_preferences_t* const
prefsPtr
= (preferencesPtr==NULL) ? &prefsNull : preferencesPtr;
269
U32 const flush =
prefsPtr
->autoFlush | (srcSize==0);
270
LZ4F_blockSizeID_t const bid =
prefsPtr
->frameInfo.blockSizeID;
281
size_t const frameEnd = 4 + (
prefsPtr
->frameInfo.contentChecksumFlag*4);
[
all
...]
/external/lz4/tests/
frametest.c
603
const LZ4F_preferences_t*
prefsPtr
= &prefs;
614
if ((FUZ_rand(&randState) & 0xF) == 1)
prefsPtr
= NULL;
625
cSize = LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(srcSize,
prefsPtr
), srcStart, srcSize,
prefsPtr
);
631
BYTE* const oend = op + (neverFlush ? LZ4F_compressFrameBound(srcSize,
prefsPtr
) : compressedBufferSize); /* when flushes are possible, can't guarantee a max compressed size */
635
result = LZ4F_compressBegin(cCtx, op, oend-op,
prefsPtr
);
642
size_t const oSize = LZ4F_compressBound(iSize,
prefsPtr
);
[
all
...]
Completed in 5456 milliseconds