/freebsd-current/sys/contrib/zstd/lib/deprecated/ |
H A D | zbuff_decompress.c | 56 ZSTD_inBuffer inBuff; local 61 inBuff.src = src; 62 inBuff.pos = 0; 63 inBuff.size = *srcSizePtr; 64 result = ZSTD_decompressStream(zbd, &outBuff, &inBuff); 66 *srcSizePtr = inBuff.pos;
|
H A D | zbuff_compress.c | 119 ZSTD_inBuffer inBuff; local 123 inBuff.src = src; 124 inBuff.pos = 0; 125 inBuff.size = *srcSizePtr; 126 result = ZSTD_compressStream(zbc, &outBuff, &inBuff); 128 *srcSizePtr = inBuff.pos;
|
/freebsd-current/sys/contrib/zstd/examples/ |
H A D | streaming_memory_usage.c | 89 ZSTD_inBuffer inBuff = { dataToCompress, sizeof(dataToCompress), 0 }; local 91 CHECK_ZSTD( ZSTD_compressStream(cctx, &outBuff, &inBuff) ); 108 { ZSTD_inBuffer inBuff = { compressedData, compressedSize, 0 }; local 110 size_t const remaining = ZSTD_decompressStream(dctx, &outBuff, &inBuff);
|
/freebsd-current/sys/contrib/zstd/lib/compress/ |
H A D | zstdmt_compress.c | 808 size_t pos; /* The position of the current inBuff in the round 809 * buffer. Updated past the end if the inBuff once 810 * the inBuff is sent to the worker thread. 844 inBuff_t inBuff; member in struct:ZSTDMT_CCtx_s 992 mtctx->inBuff.buffer = g_nullBuffer; 993 mtctx->inBuff.filled = 0; 1085 fps.ingested = mtctx->consumed + mtctx->inBuff.filled; 1282 DEBUGLOG(4, "inBuff Size : %u KB", (U32)(mtctx->targetSectionSize>>10)); 1312 mtctx->inBuff.buffer = g_nullBuffer; 1313 mtctx->inBuff [all...] |
H A D | zstd_compress.c | 1626 size_t const buffered = (cctx->inBuff == NULL) ? 0 : 1945 zc->inBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffInSize); 5344 assert(zcs->inBuff != NULL); 5381 zcs->inBuff + zcs->inBuffPos, toLoad, 5414 zcs->inBuff + zcs->inToCompress, iSize) : 5416 zcs->inBuff + zcs->inToCompress, iSize);
|
H A D | zstd_compress_internal.h | 399 char* inBuff; member in struct:ZSTD_CCtx_s
|
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress_internal.h | 141 char* inBuff; member in struct:ZSTD_DCtx_s
|
H A D | zstd_decompress.c | 107 dctx->inBuff = NULL; 131 dctx->inBuff = (char*)(dctx+1); 167 ZSTD_free(dctx->inBuff, cMem); 168 dctx->inBuff = NULL; 181 size_t const toCopy = (size_t)((char*)(&dstDCtx->inBuff) - (char*)dstDCtx); 1737 DEBUGLOG(4, "inBuff : from %u to %u", 1748 ZSTD_free(zds->inBuff, zds->customMem); 1751 zds->inBuff = (char*)ZSTD_malloc(bufferSize, zds->customMem); 1752 RETURN_ERROR_IF(zds->inBuff == NULL, memory_allocation, ""); 1755 zds->outBuff = zds->inBuff [all...] |
/freebsd-current/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress_internal.h | 170 char* inBuff; member in struct:ZSTD_DCtx_s
|
H A D | zstd_decompress.c | 256 dctx->inBuff = NULL; 285 dctx->inBuff = (char*)(dctx+1); 325 ZSTD_customFree(dctx->inBuff, cMem); 326 dctx->inBuff = NULL; 343 size_t const toCopy = (size_t)((char*)(&dstDCtx->inBuff) - (char*)dstDCtx); 2082 DEBUGLOG(4, "inBuff : from %u to %u", 2093 ZSTD_customFree(zds->inBuff, zds->customMem); 2096 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); 2097 RETURN_ERROR_IF(zds->inBuff == NULL, memory_allocation, ""); 2100 zds->outBuff = zds->inBuff [all...] |
/freebsd-current/sys/contrib/zstd/programs/ |
H A D | fileio.c | 1391 ZSTD_inBuffer inBuff = { ress.srcBuffer, inSize, 0 }; local 1399 while ((inBuff.pos != inBuff.size) /* input buffer must be entirely ingested */ 1402 size_t const oldIPos = inBuff.pos; 1405 CHECK_V(stillToFlush, ZSTD_compressStream2(ress.cctx, &outBuff, &inBuff, directive)); 1409 if (oldIPos == inBuff.pos) inputBlocked++; /* input buffer is full and can't take any more : input speed is faster than consumption rate */ 1414 (unsigned)directive, (unsigned)inBuff.pos, (unsigned)inBuff.size, (unsigned)outBuff.pos); 1548 } /* while ((inBuff.pos != inBuff 2246 ZSTD_inBuffer inBuff = { ress->srcBuffer, ress->srcBufferLoaded, 0 }; local [all...] |
/freebsd-current/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v05.c | 3836 char* inBuff; member in struct:ZBUFFv05_DCtx_s 3863 free(zbc->inBuff); 3944 free(zbc->inBuff); 3946 zbc->inBuff = (char*)malloc(neededInSize); 3947 if (zbc->inBuff == NULL) return ERROR(memory_allocation); 3956 /* some data already loaded into headerBuffer : transfer into inBuff */ 3957 memcpy(zbc->inBuff, zbc->headerBuffer, zbc->hPos); 3992 size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff */ 3995 loadedSize = ZBUFFv05_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); 4002 zbc->inBuff, neededInSiz [all...] |
H A D | zstd_v04.c | 3356 char* inBuff; member in struct:ZBUFFv04_DCtx_s 3387 free(zbc->inBuff); 3479 free(zbc->inBuff); 3481 zbc->inBuff = (char*)malloc(neededInSize); 3482 if (zbc->inBuff == NULL) return ERROR(memory_allocation); 3493 /* some data already loaded into headerBuffer : transfer into inBuff */ 3494 memcpy(zbc->inBuff, zbc->headerBuffer, zbc->hPos); 3531 size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff */ 3534 loadedSize = ZBUFF_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); 3541 zbc->inBuff, neededInSiz [all...] |
H A D | zstd_v07.c | 4317 char* inBuff; member in struct:ZBUFFv07_DCtx_s 4361 if (zbd->inBuff) zbd->customMem.customFree(zbd->customMem.opaque, zbd->inBuff); 4445 zbd->customMem.customFree(zbd->customMem.opaque, zbd->inBuff); 4447 zbd->inBuff = (char*)zbd->customMem.customAlloc(zbd->customMem.opaque, blockSize); 4448 if (zbd->inBuff == NULL) return ERROR(memory_allocation); 4485 size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within inBuff */ 4488 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); 4497 zbd->inBuff, neededInSize);
|
H A D | zstd_v06.c | 3952 char* inBuff; member in struct:ZBUFFv06_DCtx_s 3979 free(zbd->inBuff); 4061 free(zbd->inBuff); 4063 zbd->inBuff = (char*)malloc(blockSize); 4064 if (zbd->inBuff == NULL) return ERROR(memory_allocation); 4099 size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within inBuff */ 4102 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); 4110 zbd->inBuff, neededInSize);
|
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 1241 size_t const buffered = (cctx->inBuff == NULL) ? 0 : 1538 zc->inBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffInSize); 3818 assert(zcs->inBuff != NULL); 3849 zcs->inBuff + zcs->inBuffPos, toLoad, 3878 zcs->inBuff + zcs->inToCompress, iSize) : 3880 zcs->inBuff + zcs->inToCompress, iSize);
|
H A D | zstd_compress_internal.h | 264 char* inBuff; member in struct:ZSTD_CCtx_s
|