Home
last modified time | relevance | path

Searched refs:dstCapacity (Results 1 - 25 of 27) sorted by relevance

12

/third_party/lz4/ossfuzz/
H A Ddecompress_fuzzer.c21 size_t const dstCapacity = FUZZ_getRange_from_uint32(dstCapacitySeed, 0, 4 * size); in LLVMFuzzerTestOneInput() local
25 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput()
41 dstCapacity, NULL, 0); in LLVMFuzzerTestOneInput()
44 dstCapacity, smallDict, smallDictSize); in LLVMFuzzerTestOneInput()
47 dstCapacity, largeDict, largeDictSize); in LLVMFuzzerTestOneInput()
50 dstCapacity, smallDict, smallDictSize); in LLVMFuzzerTestOneInput()
53 dstCapacity, largeDict, largeDictSize); in LLVMFuzzerTestOneInput()
56 dstCapacity, dstCapacity); in LLVMFuzzerTestOneInput()
60 dstCapacity, dstCapacit in LLVMFuzzerTestOneInput()
[all...]
H A Ddecompress_frame_fuzzer.c18 static void decompress(LZ4F_dctx* dctx, void* dst, size_t dstCapacity, in decompress() argument
25 LZ4F_decompress(dctx, dst, &dstCapacity, src, &srcSize, opts); in decompress()
27 LZ4F_decompress_usingDict(dctx, dst, &dstCapacity, src, &srcSize, in decompress()
38 size_t const dstCapacity = FUZZ_getRange_from_uint32( in LLVMFuzzerTestOneInput() local
44 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput()
61 decompress(dctx, dst, dstCapacity, data, size, NULL, 0, &opts); in LLVMFuzzerTestOneInput()
63 decompress(dctx, dst, dstCapacity, data, size, NULL, 0, &opts); in LLVMFuzzerTestOneInput()
65 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput()
67 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput()
H A Dround_trip_frame_uncompressed_fuzzer.c19 size_t dstCapacity, size_t readSize) { in decompress()
28 size_t dstSize = dstCapacity; in decompress()
60 size_t const dstCapacity = in compress_round_trip() local
63 char *const dst = (char *) malloc(dstCapacity); in compress_round_trip()
64 size_t rtCapacity = dstCapacity; in compress_round_trip()
75 size_t const headerSize = LZ4F_compressBegin(ctx, dst, dstCapacity, &prefs); in compress_round_trip()
80 size_t lz4Return = LZ4F_compressUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip()
86 lz4Return = LZ4F_uncompressedUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip()
92 lz4Return = LZ4F_compressUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip()
99 lz4Return = LZ4F_compressEnd(ctx, dst + compressedSize, dstCapacity, NUL in compress_round_trip()
18 decompress(LZ4F_dctx *dctx, void *src, void *dst, size_t dstCapacity, size_t readSize) decompress() argument
[all...]
H A Dcompress_hc_fuzzer.c24 size_t const dstCapacity = FUZZ_getRange_from_uint32(dstCapacitySeed, 0, size); in LLVMFuzzerTestOneInput() local
27 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput()
36 dstCapacity, level); in LLVMFuzzerTestOneInput()
44 if (dstCapacity > 0) { in LLVMFuzzerTestOneInput()
51 dstCapacity, level); in LLVMFuzzerTestOneInput()
H A Dcompress_fuzzer.c23 size_t const dstCapacity = FUZZ_getRange_from_uint32(dstCapacitySeed, 0, compressBound); in LLVMFuzzerTestOneInput() local
25 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput()
34 size, dstCapacity); in LLVMFuzzerTestOneInput()
42 if (dstCapacity > 0) { in LLVMFuzzerTestOneInput()
46 &compressedSize, dstCapacity); in LLVMFuzzerTestOneInput()
H A Dcompress_frame_fuzzer.c26 size_t const dstCapacity = FUZZ_getRange_from_uint32(dstCapacitySeed, 0, compressBound); in LLVMFuzzerTestOneInput() local
28 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput()
36 LZ4F_compressFrame(dst, dstCapacity, data, size, &prefs); in LLVMFuzzerTestOneInput()
H A Dround_trip_frame_fuzzer.c23 size_t const dstCapacity = LZ4F_compressFrameBound(LZ4_compressBound(size), &prefs); in LLVMFuzzerTestOneInput() local
24 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput()
32 LZ4F_compressFrame(dst, dstCapacity, data, size, &prefs); in LLVMFuzzerTestOneInput()
H A Dround_trip_hc_fuzzer.c23 size_t const dstCapacity = LZ4_compressBound(size); in LLVMFuzzerTestOneInput() local
24 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput()
32 dstCapacity, level); in LLVMFuzzerTestOneInput()
H A Dround_trip_stream_fuzzer.c106 int const dstCapacity = state->roundTrip.size - state->roundTrip.pos; in state_decompress() local
108 srcSize, dstCapacity); in state_decompress()
146 int const dstCapacity = state->compressed.size - state->compressed.pos; in state_prefixRoundTrip() local
148 srcSize, dstCapacity, 0); in state_prefixRoundTrip()
167 int const dstCapacity = state->compressed.size - state->compressed.pos; in state_extDictRoundTrip() local
169 srcSize, dstCapacity, 0); in state_extDictRoundTrip()
216 int const dstCapacity = state->compressed.size - state->compressed.pos; in state_prefixHCRoundTrip() local
218 srcSize, dstCapacity); in state_prefixHCRoundTrip()
238 int const dstCapacity = state->compressed.size - state->compressed.pos; in state_extDictHCRoundTrip() local
240 srcSize, dstCapacity); in state_extDictHCRoundTrip()
[all...]
H A Dround_trip_fuzzer.c22 size_t const dstCapacity = LZ4_compressBound(size); in LLVMFuzzerTestOneInput() local
25 char* const dstPlusLargePrefix = (char*)malloc(dstCapacity + largeSize); in LLVMFuzzerTestOneInput()
37 size, dstCapacity); in LLVMFuzzerTestOneInput()
H A Dlz4_helpers.c30 size_t FUZZ_decompressFrame(void* dst, const size_t dstCapacity, in FUZZ_decompressFrame() argument
40 size_t dstSize = dstCapacity; in FUZZ_decompressFrame()
H A Dlz4_helpers.h10 size_t FUZZ_decompressFrame(void* dst, const size_t dstCapacity,
/third_party/lz4/lib/
H A Dlz4.h177 * into already allocated 'dst' buffer of size 'dstCapacity'.
178 * Compression is guaranteed to succeed if 'dstCapacity' >= LZ4_compressBound(srcSize).
184 * dstCapacity : size of buffer 'dst' (which must be already allocated)
185 * @return : the number of bytes written into buffer 'dst' (necessarily <= dstCapacity)
189 LZ4LIB_API int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity);
193 * dstCapacity : is the size of destination buffer (which must be already allocated), presumed an upper bound of decompressed size.
194 * @return : the number of bytes decompressed into destination buffer (necessarily <= dstCapacity)
201 * Note 2 : compressedSize and dstCapacity must be provided to the function, the compressed block does not contain them.
205 LZ4LIB_API int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity);
218 Note that LZ4_compress_default() compresses faster when dstCapacity i
[all...]
H A Dlz4frame.c366 * Provides dstCapacity given a srcSize to guarantee operation success in worst case situations.
421 void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame_usingCDict()
430 BYTE* const dstEnd = dstStart + dstCapacity; in LZ4F_compressFrame_usingCDict()
447 RETURN_ERROR_IF(dstCapacity < LZ4F_compressFrameBound(srcSize, &prefs), dstMaxSize_tooSmall); in LZ4F_compressFrame_usingCDict()
449 { size_t const headerSize = LZ4F_compressBegin_usingCDict(cctx, dstBuffer, dstCapacity, cdict, &prefs); /* write header */ in LZ4F_compressFrame_usingCDict()
475 size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, in LZ4F_compressFrame() argument
502 result = LZ4F_compressFrame_usingCDict(cctxPtr, dstBuffer, dstCapacity, in LZ4F_compressFrame()
673 * @dstCapacity must be >= LZ4F_HEADER_SIZE_MAX bytes.
678 void* dstBuffer, size_t dstCapacity, in LZ4F_compressBegin_usingCDict()
686 RETURN_ERROR_IF(dstCapacity < maxFHSiz in LZ4F_compressBegin_usingCDict()
420 LZ4F_compressFrame_usingCDict(LZ4F_cctx* cctx, void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_CDict* cdict, const LZ4F_preferences_t* preferencesPtr) LZ4F_compressFrame_usingCDict() argument
677 LZ4F_compressBegin_usingCDict(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const LZ4F_CDict* cdict, const LZ4F_preferences_t* preferencesPtr) LZ4F_compressBegin_usingCDict() argument
795 LZ4F_compressBegin(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const LZ4F_preferences_t* preferencesPtr) LZ4F_compressBegin() argument
853 LZ4F_compressBlock(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict) LZ4F_compressBlock() argument
865 LZ4F_compressBlock_continue(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict) LZ4F_compressBlock_continue() argument
873 LZ4F_compressBlockHC(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict) LZ4F_compressBlockHC() argument
882 LZ4F_compressBlockHC_continue(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict) LZ4F_compressBlockHC_continue() argument
888 LZ4F_doNotCompressBlock(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict) LZ4F_doNotCompressBlock() argument
930 LZ4F_compressUpdateImpl(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_compressOptions_t* compressOptionsPtr, LZ4F_blockCompression_t blockCompression) LZ4F_compressUpdateImpl() argument
1060 LZ4F_compressUpdate(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_compressOptions_t* compressOptionsPtr) LZ4F_compressUpdate() argument
1084 LZ4F_uncompressedUpdate(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_compressOptions_t* compressOptionsPtr) LZ4F_uncompressedUpdate() argument
1104 LZ4F_flush(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const LZ4F_compressOptions_t* compressOptionsPtr) LZ4F_flush() argument
1151 LZ4F_compressEnd(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const LZ4F_compressOptions_t* compressOptionsPtr) LZ4F_compressEnd() argument
[all...]
H A Dlz4frame.h219 * dstCapacity MUST be >= LZ4F_compressFrameBound(srcSize, preferencesPtr).
224 LZ4FLIB_API size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity,
280 * dstCapacity must be >= LZ4F_HEADER_SIZE_MAX bytes.
286 void* dstBuffer, size_t dstCapacity,
290 * Provides minimum dstCapacity required to guarantee success of
308 * Important rule: dstCapacity MUST be large enough to ensure operation success even in worst case situations.
319 void* dstBuffer, size_t dstCapacity,
326 * `dstCapacity` must be large enough to ensure the operation will be successful.
330 * Note : LZ4F_flush() is guaranteed to be successful when dstCapacity >= LZ4F_compressBound(0, prefsPtr).
333 void* dstBuffer, size_t dstCapacity,
[all...]
H A Dlz4hc.c793 int* srcSizePtr, int dstCapacity,
805 int const dstCapacity, in LZ4HC_compress_generic_internal()
836 if (limit == fillOutput && dstCapacity < 1) return 0; /* Impossible to store anything */ in LZ4HC_compress_generic_internal()
848 src, dst, srcSizePtr, dstCapacity, in LZ4HC_compress_generic_internal()
853 src, dst, srcSizePtr, dstCapacity, in LZ4HC_compress_generic_internal()
871 int const dstCapacity, in LZ4HC_compress_generic_noDictCtx()
877 return LZ4HC_compress_generic_internal(ctx, src, dst, srcSizePtr, dstCapacity, cLevel, limit, noDictCtx); in LZ4HC_compress_generic_noDictCtx()
886 int const dstCapacity, in LZ4HC_compress_generic_dictCtx()
895 return LZ4HC_compress_generic_noDictCtx(ctx, src, dst, srcSizePtr, dstCapacity, cLevel, limit); in LZ4HC_compress_generic_dictCtx()
900 return LZ4HC_compress_generic_noDictCtx(ctx, src, dst, srcSizePtr, dstCapacity, cLeve in LZ4HC_compress_generic_dictCtx()
800 LZ4HC_compress_generic_internal( LZ4HC_CCtx_internal* const ctx, const char* const src, char* const dst, int* const srcSizePtr, int const dstCapacity, int cLevel, const limitedOutput_directive limit, const dictCtx_directive dict ) LZ4HC_compress_generic_internal() argument
866 LZ4HC_compress_generic_noDictCtx( LZ4HC_CCtx_internal* const ctx, const char* const src, char* const dst, int* const srcSizePtr, int const dstCapacity, int cLevel, limitedOutput_directive limit ) LZ4HC_compress_generic_noDictCtx() argument
881 LZ4HC_compress_generic_dictCtx( LZ4HC_CCtx_internal* const ctx, const char* const src, char* const dst, int* const srcSizePtr, int const dstCapacity, int cLevel, limitedOutput_directive limit ) LZ4HC_compress_generic_dictCtx() argument
907 LZ4HC_compress_generic( LZ4HC_CCtx_internal* const ctx, const char* const src, char* const dst, int* const srcSizePtr, int const dstCapacity, int cLevel, limitedOutput_directive limit ) LZ4HC_compress_generic() argument
939 LZ4_compress_HC_extStateHC_fastReset(void* state, const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel) LZ4_compress_HC_extStateHC_fastReset() argument
951 LZ4_compress_HC_extStateHC(void* state, const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel) LZ4_compress_HC_extStateHC() argument
958 LZ4_compress_HC(const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel) LZ4_compress_HC() argument
1112 LZ4_compressHC_continue_generic(LZ4_streamHC_t* LZ4_streamHCPtr, const char* src, char* dst, int* srcSizePtr, int dstCapacity, limitedOutput_directive limit) LZ4_compressHC_continue_generic() argument
1151 LZ4_compress_HC_continue(LZ4_streamHC_t* LZ4_streamHCPtr, const char* src, char* dst, int srcSize, int dstCapacity) LZ4_compress_HC_continue() argument
1250 LZ4_compressHC2_limitedOutput_continue(void* LZ4HC_Data, const char* src, char* dst, int srcSize, int dstCapacity, int cLevel) LZ4_compressHC2_limitedOutput_continue() argument
1330 LZ4HC_compress_optimal( LZ4HC_CCtx_internal* ctx, const char* const source, char* dst, int* srcSizePtr, int dstCapacity, int const nbSearches, size_t sufficient_len, const limitedOutput_directive limit, int const fullUpdate, const dictCtx_directive dict, const HCfavor_e favorDecSpeed) LZ4HC_compress_optimal() argument
[all...]
H A Dlz4.c747 int compressedSize, int targetOutputSize, int dstCapacity,
1314 const int dstCapacity, in LZ4_compress_generic()
1321 DEBUGLOG(5, "LZ4_compress_generic: srcSize=%i, dstCapacity=%i", in LZ4_compress_generic()
1322 srcSize, dstCapacity); in LZ4_compress_generic()
1326 if (outputDirective != notLimited && dstCapacity <= 0) return 0; /* no output, can't write anything */ in LZ4_compress_generic()
1328 assert(outputDirective == notLimited || dstCapacity >= 1); in LZ4_compress_generic()
1341 dstCapacity, outputDirective, in LZ4_compress_generic()
1378 int LZ4_compress_fast_extState_fastReset(void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration) in LZ4_compress_fast_extState_fastReset() argument
1384 if (dstCapacity >= LZ4_compressBound(srcSize)) { in LZ4_compress_fast_extState_fastReset()
1403 return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutpu in LZ4_compress_fast_extState_fastReset()
1308 LZ4_compress_generic( LZ4_stream_t_internal* const cctx, const char* const src, char* const dst, const int srcSize, int *inputConsumed, const int dstCapacity, const limitedOutput_directive outputDirective, const tableType_t tableType, const dict_directive dictDirective, const dictIssue_directive dictIssue, const int acceleration) LZ4_compress_generic() argument
2353 LZ4_decompress_safe_partial(const char* src, char* dst, int compressedSize, int targetOutputSize, int dstCapacity) LZ4_decompress_safe_partial() argument
2381 LZ4_decompress_safe_partial_withPrefix64k(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity) LZ4_decompress_safe_partial_withPrefix64k() argument
2407 LZ4_decompress_safe_partial_withSmallPrefix(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity, size_t prefixSize) LZ4_decompress_safe_partial_withSmallPrefix() argument
2427 LZ4_decompress_safe_partial_forceExtDict(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity, const void* dictStart, size_t dictSize) LZ4_decompress_safe_partial_forceExtDict() argument
2627 LZ4_decompress_safe_partial_usingDict(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity, const char* dictStart, int dictSize) LZ4_decompress_safe_partial_usingDict() argument
2673 LZ4_compress_limitedOutput_continue(LZ4_stream_t* LZ4_stream, const char* src, char* dst, int srcSize, int dstCapacity) LZ4_compress_limitedOutput_continue() argument
[all...]
H A Dlz4hc.h59 * Compression is guaranteed to succeed if `dstCapacity >= LZ4_compressBound(srcSize)` (see "lz4.h")
66 LZ4LIB_API int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel);
376 int srcSize, int dstCapacity,
/third_party/skia/src/utils/
H A DSkUTF.cpp255 int SkUTF::UTF8ToUTF16(uint16_t dst[], int dstCapacity, const char src[], size_t srcByteLength) { in UTF8ToUTF16() argument
257 dstCapacity = 0; in UTF8ToUTF16()
261 uint16_t* endDst = dst + dstCapacity; in UTF8ToUTF16()
287 int SkUTF::UTF16ToUTF8(char dst[], int dstCapacity, const uint16_t src[], size_t srcLength) { in UTF16ToUTF8() argument
289 dstCapacity = 0; in UTF16ToUTF8()
293 const char* endDst = dst + dstCapacity; in UTF16ToUTF8()
H A DSkUTF.h72 SK_SPI int UTF8ToUTF16(uint16_t dst[], int dstCapacity, const char src[], size_t srcByteLength);
78 SK_SPI int UTF16ToUTF8(char dst[], int dstCapacity, const uint16_t src[], size_t srcLength);
/third_party/lz4/examples/
H A DframeCompress.c204 void* dst, size_t dstCapacity) in decompress_file_internal()
212 assert(dst != NULL); assert(dstCapacity > 0); in decompress_file_internal()
231 size_t dstSize = dstCapacity; in decompress_file_internal()
299 size_t const dstCapacity = get_block_size(&info); in decompress_file_allocDst() local
300 void* const dst = malloc(dstCapacity); in decompress_file_allocDst()
307 dst, dstCapacity); in decompress_file_allocDst()
201 decompress_file_internal(FILE* f_in, FILE* f_out, LZ4F_dctx* dctx, void* src, size_t srcCapacity, size_t filled, size_t alreadyConsumed, void* dst, size_t dstCapacity) decompress_file_internal() argument
/third_party/lz4/tests/
H A Dframetest.c486 { size_t const dstCapacity = LZ4F_compressFrameBound(testSize, &prefs); in basicTests() local
487 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity) in basicTests()
488 CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests()
494 { size_t const dstCapacity = LZ4F_compressFrameBound(testSize, &prefs); in basicTests() local
495 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity) in basicTests()
496 CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, dstCapacity, CNBuffer, testSize, &prefs) ); in basicTests()
590 size_t const dstCapacity = LZ4F_compressFrameBound(srcSize, NULL); in basicTests() local
605 LZ4F_compressFrame_usingCDict(cctx, compressedBuffer, dstCapacity, in basicTests()
871 test_lz4f_decompression_wBuffers( const void* cSrc, size_t cSize, void* dst, size_t dstCapacity, o_scenario_e o_scenario, const void* srcRef, size_t decompressedSize, U64 crcOrig, U32* const randState, LZ4F_dctx* const dCtx, U32 seed, U32 testNb, int findErrorPos) test_lz4f_decompression_wBuffers() argument
970 size_t const dstCapacity = (o_scenario == o_noncontiguous) ? test_lz4f_decompression() local
[all...]
/third_party/icu/icu4c/source/common/
H A Duniset_props.cpp750 static UBool mungeCharName(char* dst, const char* src, int32_t dstCapacity) { in mungeCharName() argument
754 --dstCapacity; /* make room for term. zero */ in mungeCharName()
759 if (j >= dstCapacity) return false; in mungeCharName()
/third_party/node/deps/icu-small/source/common/
H A Duniset_props.cpp747 static UBool mungeCharName(char* dst, const char* src, int32_t dstCapacity) { in mungeCharName() argument
751 --dstCapacity; /* make room for term. zero */ in mungeCharName()
756 if (j >= dstCapacity) return false; in mungeCharName()
/third_party/lz4/programs/
H A Dbench.c312 int srcSize, int dstCapacity,
319 int srcSize, int dstCapacity, in LZ4F_decompress_binding()
322 size_t dstSize = (size_t)dstCapacity; in LZ4F_decompress_binding()
318 LZ4F_decompress_binding(const char* src, char* dst, int srcSize, int dstCapacity, const char* dictStart, int dictSize) LZ4F_decompress_binding() argument

Completed in 22 milliseconds

12