Home
last modified time | relevance | path

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

/freebsd-14.2/sys/contrib/zstd/lib/compress/
H A Dzstdmt_compress.c114 bufPool->bufferSize = 64 KB; in ZSTDMT_createBufferPool()
116 bufPool->nbBuffers = 0; in ZSTDMT_createBufferPool()
117 bufPool->cMem = cMem; in ZSTDMT_createBufferPool()
118 return bufPool; in ZSTDMT_createBufferPool()
128 ZSTD_customFree(bufPool->bTable[u].start, bufPool->cMem); in ZSTDMT_freeBufferPool()
131 ZSTD_customFree(bufPool, bufPool->cMem); in ZSTDMT_freeBufferPool()
189 buffer_t const buf = bufPool->bTable[--(bufPool->nbBuffers)]; in ZSTDMT_getBuffer()
191 bufPool->bTable[bufPool->nbBuffers] = g_nullBuffer; in ZSTDMT_getBuffer()
251 if (bufPool->nbBuffers < bufPool->totalBuffers) { in ZSTDMT_releaseBuffer()
252 bufPool->bTable[bufPool->nbBuffers++] = buf; /* stored for later use */ in ZSTDMT_releaseBuffer()
[all …]