Lines Matching refs:srcSize
118 ZSTD_STATIC size_t BIT_initDStream(BIT_DStream_t *bitD, const void *srcBuffer, size_t srcSize);
236 * `srcSize` must be the *exact* size of the bitStream, in bytes.
237 * @return : size of stream (== srcSize) or an errorCode if a problem is detected
239 ZSTD_STATIC size_t BIT_initDStream(BIT_DStream_t *bitD, const void *srcBuffer, size_t srcSize)
241 if (srcSize < 1) {
246 if (srcSize >= sizeof(bitD->bitContainer)) { /* normal case */
248 bitD->ptr = (const char *)srcBuffer + srcSize - sizeof(bitD->bitContainer);
251 BYTE const lastByte = ((const BYTE *)srcBuffer)[srcSize - 1];
260 switch (srcSize) {
275 BYTE const lastByte = ((const BYTE *)srcBuffer)[srcSize - 1];
280 bitD->bitsConsumed += (U32)(sizeof(bitD->bitContainer) - srcSize) * 8;
283 return srcSize;
366 bitD->bitContainer = ZSTD_readLEST(bitD->ptr); /* reminder : srcSize > sizeof(bitD) */