Home
last modified time | relevance | path

Searched refs:inBuff (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/contrib/zstd/lib/deprecated/
H A Dzbuff_decompress.c58 ZSTD_inBuffer inBuff; in ZBUFF_decompressContinue() local
63 inBuff.src = src; in ZBUFF_decompressContinue()
64 inBuff.pos = 0; in ZBUFF_decompressContinue()
65 inBuff.size = *srcSizePtr; in ZBUFF_decompressContinue()
66 result = ZSTD_decompressStream(zbd, &outBuff, &inBuff); in ZBUFF_decompressContinue()
68 *srcSizePtr = inBuff.pos; in ZBUFF_decompressContinue()
H A Dzbuff_compress.c119 ZSTD_inBuffer inBuff; in ZBUFF_compressContinue() local
123 inBuff.src = src; in ZBUFF_compressContinue()
124 inBuff.pos = 0; in ZBUFF_compressContinue()
125 inBuff.size = *srcSizePtr; in ZBUFF_compressContinue()
126 result = ZSTD_compressStream(zbc, &outBuff, &inBuff); in ZBUFF_compressContinue()
128 *srcSizePtr = inBuff.pos; in ZBUFF_compressContinue()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstdmt_compress.c876 InBuff_t inBuff; member
1024 mtctx->inBuff.buffer = g_nullBuffer; in ZSTDMT_releaseAllJobResources()
1025 mtctx->inBuff.filled = 0; in ZSTDMT_releaseAllJobResources()
1117 fps.ingested = mtctx->consumed + mtctx->inBuff.filled; in ZSTDMT_getFrameProgression()
1341 mtctx->inBuff.buffer = g_nullBuffer; in ZSTDMT_initCStream_internal()
1342 mtctx->inBuff.filled = 0; in ZSTDMT_initCStream_internal()
1343 mtctx->inBuff.prefix = kNullRange; in ZSTDMT_initCStream_internal()
1357 mtctx->inBuff.prefix.start = (const BYTE*)dict; in ZSTDMT_initCStream_internal()
1358 mtctx->inBuff.prefix.size = dictSize; in ZSTDMT_initCStream_internal()
1415 BYTE const* src = (BYTE const*)mtctx->inBuff.buffer.start; in ZSTDMT_createCompressionJob()
[all …]
H A Dzstd_compress.c1877 size_t const buffered = (cctx->inBuff == NULL) ? 0 : in ZSTD_getFrameProgression()
2252 zc->inBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffInSize); in ZSTD_resetCCtx_internal()
6126 assert(zcs->inBuff != NULL); in ZSTD_compressStream_generic()
6166 zcs->inBuff + zcs->inBuffPos, toLoad, in ZSTD_compressStream_generic()
6211 zcs->inBuff + zcs->inToCompress, iSize) : in ZSTD_compressStream_generic()
6213 zcs->inBuff + zcs->inToCompress, iSize); in ZSTD_compressStream_generic()
H A Dzstd_compress_internal.h508 char* inBuff; member
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c261 dctx->inBuff = NULL; in ZSTD_initDCtx_internal()
291 dctx->inBuff = (char*)(dctx+1); in ZSTD_initStaticDCtx()
331 ZSTD_customFree(dctx->inBuff, cMem); in ZSTD_freeDCtx()
332 dctx->inBuff = NULL; in ZSTD_freeDCtx()
349 size_t const toCopy = (size_t)((char*)(&dstDCtx->inBuff) - (char*)dstDCtx); in ZSTD_copyDCtx()
2261 ZSTD_customFree(zds->inBuff, zds->customMem); in ZSTD_decompressStream()
2264 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
2265 RETURN_ERROR_IF(zds->inBuff == NULL, memory_allocation, ""); in ZSTD_decompressStream()
2268 zds->outBuff = zds->inBuff + zds->inBuffSize; in ZSTD_decompressStream()
2307 … loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, (size_t)(iend-ip)); in ZSTD_decompressStream()
[all …]
H A Dzstd_decompress_internal.h175 char* inBuff; member
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c260 dctx->inBuff = NULL; in ZSTD_initDCtx_internal()
290 dctx->inBuff = (char*)(dctx+1); in ZSTD_initStaticDCtx()
330 ZSTD_customFree(dctx->inBuff, cMem); in ZSTD_freeDCtx()
331 dctx->inBuff = NULL; in ZSTD_freeDCtx()
348 size_t const toCopy = (size_t)((char*)(&dstDCtx->inBuff) - (char*)dstDCtx); in ZSTD_copyDCtx()
2260 ZSTD_customFree(zds->inBuff, zds->customMem); in ZSTD_decompressStream()
2263 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
2264 RETURN_ERROR_IF(zds->inBuff == NULL, memory_allocation, ""); in ZSTD_decompressStream()
2267 zds->outBuff = zds->inBuff + zds->inBuffSize; in ZSTD_decompressStream()
2306 … loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, (size_t)(iend-ip)); in ZSTD_decompressStream()
[all …]
H A Dzstd_decompress_internal.h174 char* inBuff; member
/freebsd/sys/contrib/zstd/programs/
H A Dfileio.c1551 … ZSTD_inBuffer inBuff = setInBuffer( ress.readCtx->srcBuffer, ress.readCtx->srcBufferLoaded, 0 ); in FIO_compressZstdFrame() local
1559 while ((inBuff.pos != inBuff.size) /* input buffer must be entirely ingested */ in FIO_compressZstdFrame()
1562 size_t const oldIPos = inBuff.pos; in FIO_compressZstdFrame()
1565 CHECK_V(stillToFlush, ZSTD_compressStream2(ress.cctx, &outBuff, &inBuff, directive)); in FIO_compressZstdFrame()
1566 AIO_ReadPool_consumeBytes(ress.readCtx, inBuff.pos - oldIPos); in FIO_compressZstdFrame()
1570 …if (oldIPos == inBuff.pos) inputBlocked++; /* input buffer is full and can't take any more : inpu… in FIO_compressZstdFrame()
1575 … (unsigned)directive, (unsigned)inBuff.pos, (unsigned)inBuff.size, (unsigned)outBuff.pos); in FIO_compressZstdFrame()
2458 …ZSTD_inBuffer inBuff = setInBuffer( ress->readCtx->srcBuffer, ress->readCtx->srcBufferLoaded, 0 ); in FIO_decompressZstdFrame() local
2460 size_t const readSizeHint = ZSTD_decompressStream(ress->dctx, &outBuff, &inBuff); in FIO_decompressZstdFrame()
2483 AIO_ReadPool_consumeBytes(ress->readCtx, inBuff.pos); in FIO_decompressZstdFrame()
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v04.c3307 char* inBuff; member
3338 free(zbc->inBuff); in ZBUFF_freeDCtx()
3430 free(zbc->inBuff); in ZBUFF_decompressContinue()
3432 zbc->inBuff = (char*)malloc(neededInSize); in ZBUFF_decompressContinue()
3433 if (zbc->inBuff == NULL) return ERROR(memory_allocation); in ZBUFF_decompressContinue()
3445 memcpy(zbc->inBuff, zbc->headerBuffer, zbc->hPos); in ZBUFF_decompressContinue()
3485 loadedSize = ZBUFF_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFF_decompressContinue()
3492 zbc->inBuff, neededInSize); in ZBUFF_decompressContinue()
H A Dzstd_v05.c3791 char* inBuff; member
3818 free(zbc->inBuff); in ZBUFFv05_freeDCtx()
3899 free(zbc->inBuff); in ZBUFFv05_decompressContinue()
3901 zbc->inBuff = (char*)malloc(neededInSize); in ZBUFFv05_decompressContinue()
3902 if (zbc->inBuff == NULL) return ERROR(memory_allocation); in ZBUFFv05_decompressContinue()
3912 memcpy(zbc->inBuff, zbc->headerBuffer, zbc->hPos); in ZBUFFv05_decompressContinue()
3950 loadedSize = ZBUFFv05_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFFv05_decompressContinue()
3957 zbc->inBuff, neededInSize); in ZBUFFv05_decompressContinue()
H A Dzstd_v06.c3903 char* inBuff; member
3934 free(zbd->inBuff); in ZBUFFv06_freeDCtx()
4017 free(zbd->inBuff); in ZBUFFv06_decompressContinue()
4019 zbd->inBuff = (char*)malloc(blockSize); in ZBUFFv06_decompressContinue()
4020 if (zbd->inBuff == NULL) return ERROR(memory_allocation); in ZBUFFv06_decompressContinue()
4058 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv06_decompressContinue()
4066 zbd->inBuff, neededInSize); in ZBUFFv06_decompressContinue()
H A Dzstd_v07.c4265 char* inBuff; member
4309 if (zbd->inBuff) zbd->customMem.customFree(zbd->customMem.opaque, zbd->inBuff); in ZBUFFv07_freeDCtx()
4394 zbd->customMem.customFree(zbd->customMem.opaque, zbd->inBuff); in ZBUFFv07_decompressContinue()
4396 … zbd->inBuff = (char*)zbd->customMem.customAlloc(zbd->customMem.opaque, blockSize); in ZBUFFv07_decompressContinue()
4397 if (zbd->inBuff == NULL) return ERROR(memory_allocation); in ZBUFFv07_decompressContinue()
4437 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv07_decompressContinue()
4446 zbd->inBuff, neededInSize); in ZBUFFv07_decompressContinue()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c1878 size_t const buffered = (cctx->inBuff == NULL) ? 0 : in ZSTD_getFrameProgression()
2253 zc->inBuff = (char*)ZSTD_cwksp_reserve_buffer(ws, buffInSize); in ZSTD_resetCCtx_internal()
6127 assert(zcs->inBuff != NULL); in ZSTD_compressStream_generic()
6167 zcs->inBuff + zcs->inBuffPos, toLoad, in ZSTD_compressStream_generic()
6212 zcs->inBuff + zcs->inToCompress, iSize) : in ZSTD_compressStream_generic()
6214 zcs->inBuff + zcs->inToCompress, iSize); in ZSTD_compressStream_generic()
H A Dzstd_compress_internal.h509 char* inBuff; member