Lines Matching defs:output

1546  * tells how much data has been consumed (input) and produced (output) for current frame.
1559 fp.flushed = cctx->producedCSize; /* simplified; some data might still be left within streaming output buffer */
1571 return 0; /* over-simplification; could also check if context is currently running in streaming mode, and in which case, report how many bytes are left to be flushed within output buffer */
2536 dstSize_tooSmall, "Can't fit seq hdr in output buf!");
3766 * output space.
3990 * output an empty Block with end-of-frame mark to complete a frame
5210 ZSTD_outBuffer* output,
5217 char* const ostart = (char*)output->dst;
5218 char* const oend = output->size != 0 ? ostart + output->size : ostart;
5219 char* op = output->pos != 0 ? ostart + output->pos : ostart;
5232 assert(output->pos <= output->size);
5244 && ( (size_t)(oend-op) >= ZSTD_compressBound(iend-ip) /* Enough output space */
5247 /* shortcut to compression pass directly into output buffer */
5288 cDst = op; /* compress into output buffer, to skip flush stage */
5371 output->pos = op - ostart;
5382 size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input)
5384 FORWARD_IF_ERROR( ZSTD_compressStream2(zcs, output, input, ZSTD_e_continue) , "");
5388 /* After a compression call set the expected input/output buffer.
5391 static void ZSTD_setBufferExpectations(ZSTD_CCtx* cctx, ZSTD_outBuffer const* output, ZSTD_inBuffer const* input)
5397 cctx->expectedOutBufferSize = output->size - output->pos;
5401 /* Validate that the input/output buffers match the expectations set by
5405 ZSTD_outBuffer const* output,
5417 size_t const outBufferSize = output->size - output->pos;
5419 RETURN_ERROR(dstBuffer_wrong, "ZSTD_c_stableOutBuffer enabled but output size differs!");
5481 ZSTD_outBuffer* output,
5487 RETURN_ERROR_IF(output->pos > output->size, dstSize_tooSmall, "invalid output buffer");
5495 ZSTD_setBufferExpectations(cctx, output, input); /* Set initial buffer expectations now that we've initialized */
5499 FORWARD_IF_ERROR(ZSTD_checkBufferStability(cctx, output, input, endOp), "invalid buffers");
5501 FORWARD_IF_ERROR( ZSTD_compressStream_generic(cctx, output, input, endOp) , "");
5503 ZSTD_setBufferExpectations(cctx, output, input);
5513 ZSTD_outBuffer output = { dst, dstCapacity, *dstPos };
5516 size_t const cErr = ZSTD_compressStream2(cctx, &output, &input, endOp);
5517 *dstPos = output.pos;
5530 /* Enable stable input/output buffers. */
5543 if (result != 0) { /* compression not completed, due to lack of output space */
5569 * larger than the total length of output decoded in order to reference the dict, even larger than
5570 * window size. After output surpasses windowSize, we're limited to windowSize offsets again.
5927 /* Begin writing output, starting with frame header */
5960 size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output)
5963 return ZSTD_compressStream2(zcs, output, &input, ZSTD_e_flush);
5967 size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output)
5970 size_t const remainingToFlush = ZSTD_compressStream2(zcs, output, &input, ZSTD_e_end);