Lines Matching defs:output

44  *  (defined as: no byte read from input, and no byte flushed to output)
872 /* We are decompressing in-place. Limit the output pointer so that we
874 * fail decompression if the input & output pointers aren't spaced
879 * literals in the output buffer, after the block it is decompressing.
1069 * output, and avoid copying the input.
1776 /* space is needed to store the litbuffer after the output of a given block without stomping the extDict of a previous run, as well as to cover both windows against wildcopy*/
1826 /* Checks that the output buffer hasn't changed if ZSTD_obm_stable is used. */
1827 static size_t ZSTD_checkOutBuffer(ZSTD_DStream const* zds, ZSTD_outBuffer const* output)
1839 if (expect.dst == output->dst && expect.pos == output->pos && expect.size == output->size)
1841 RETURN_ERROR(dstBuffer_wrong, "ZSTD_d_stableOutBuffer enabled but output differs!");
1845 * and updates the stage and the output buffer state. This call is extracted so it can be
1865 /* Write directly into the output buffer */
1878 size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input)
1884 char* const dst = (char*)output->dst;
1885 char* const ostart = output->pos != 0 ? dst + output->pos : dst;
1886 char* const oend = output->size != 0 ? dst + output->size : dst;
1897 output->pos > output->size,
1900 (U32)output->pos, (U32)output->size);
1902 FORWARD_IF_ERROR(ZSTD_checkOutBuffer(zds, output), "");
1912 zds->expectedOutBuffer = *output;
1960 /* Check output buffer is large enough for ZSTD_odm_stable. */
2097 output->pos = (size_t)(op - (char*)(output->dst));
2099 /* Update the expected output buffer for ZSTD_obm_stable. */
2100 zds->expectedOutBuffer = *output;
2114 if (zds->outEnd == zds->outStart) { /* output fully flushed */
2125 if (!zds->hostageByte) { /* output not fully flushed; keep last byte as hostage; will be released when all output is flushed */
2143 ZSTD_outBuffer output = { dst, dstCapacity, *dstPos };
2146 size_t const cErr = ZSTD_decompressStream(dctx, &output, &input);
2147 *dstPos = output.pos;