Lines Matching refs:zst_outbuffer
259 ZSTD_outBuffer zst_outbuffer; member
313 s->zst_outbuffer.dst = buffer; in zstdio_init()
314 s->zst_outbuffer.size = buf_size; in zstdio_init()
343 s->zst_outbuffer.pos = 0; in zstdio_reset()
354 while (s->zst_outbuffer.pos >= 4096) { in zst_flush_intermediate()
355 bytes_to_dump = rounddown(s->zst_outbuffer.pos, 4096); in zst_flush_intermediate()
368 s->zst_outbuffer.pos -= bytes_to_dump; in zst_flush_intermediate()
369 memmove(s->zst_outbuffer.dst, in zst_flush_intermediate()
370 (char *)s->zst_outbuffer.dst + bytes_to_dump, in zst_flush_intermediate()
371 s->zst_outbuffer.pos); in zst_flush_intermediate()
388 lastpos = s->zst_outbuffer.pos; in zstdio_flush()
390 rc = ZSTD_endStream(s->zst_stream, &s->zst_outbuffer); in zstdio_flush()
396 if (lastpos == s->zst_outbuffer.pos) { in zstdio_flush()
406 lastpos = s->zst_outbuffer.pos; in zstdio_flush()
414 if (s->zst_outbuffer.pos != 0) { in zstdio_flush()
415 error = cb(s->zst_buffer, s->zst_outbuffer.pos, s->zst_off, in zstdio_flush()
442 rc = ZSTD_compressStream(s->zst_stream, &s->zst_outbuffer, in zstdio_write()