Lines Matching +full:- +full:h

2       checkFrame - verify frame headers
3 Copyright (C) Yann Collet 2014-2020
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 - LZ4 homepage : http://www.lz4.org
23 - LZ4 source repository : https://github.com/lz4/lz4
26 /*-************************************
29 #include "util.h" /* U32 */
30 #include <stdlib.h> /* malloc, free */
31 #include <stdio.h> /* fprintf */
32 #include <string.h> /* strcmp */
33 #include <time.h> /* clock_t, clock(), CLOCKS_PER_SEC */
34 #include <assert.h>
35 #include "lz4frame.h" /* include multiple times to test correctness/safety */
36 #include "lz4frame.h"
38 #include "lz4frame.h"
39 #include "lz4frame.h"
40 #include "lz4.h" /* LZ4_VERSION_STRING */
42 #include "xxhash.h" /* XXH64 */
45 /*-************************************
53 /*-************************************
77 /*-***************************************
85 /*-*******************************************************
101 ress->srcBufferSize = 4 MB; in createCResources()
102 ress->srcBuffer = malloc(ress->srcBufferSize); in createCResources()
103 ress->dstBufferSize = 4 MB; in createCResources()
104 ress->dstBuffer = malloc(ress->dstBufferSize); in createCResources()
106 if (!ress->srcBuffer || !ress->dstBuffer) { in createCResources()
107 free(ress->srcBuffer); in createCResources()
108 free(ress->dstBuffer); in createCResources()
112 if (LZ4F_isError( LZ4F_createDecompressionContext(&(ress->ctx), LZ4F_VERSION) )) { in createCResources()
113 free(ress->srcBuffer); in createCResources()
114 free(ress->dstBuffer); in createCResources()
151 remaining = readSize - pos; in frameCheck()
169 if (nextToLoad > (readSize - pos)) { in frameCheck()
172 remaining = readSize - pos; in frameCheck()
184 …/* detect small block due to end of frame; the final 4-byte frame checksum could be left in the bu… in frameCheck()
208 DISPLAY( " -b# : expected blocksizeID [4-7] (required)\n"); in FUZ_usage()
209 DISPLAY( " -B# : expected blocksize [32-4194304] (required)\n"); in FUZ_usage()
210 DISPLAY( " -v : verbose\n"); in FUZ_usage()
211 DISPLAY( " -h : display help and exit\n"); in FUZ_usage()
230 if (argument[0]=='-') { in main()
231 if (!strcmp(argument, "--no-prompt")) { in main()
241 case 'h': in main()
249 displayLevel--; in main()
261 bsid += (unsigned)(*argument - '0'); in main()
271 blockSize += (size_t)(*argument - '0'); in main()
287 … DISPLAY("Starting frame checker (%i-bits, %s)\n", (int)(sizeof(size_t)*8), LZ4_VERSION_STRING); in main()