Lines Matching refs:zst_outbuffer
264 ZSTD_outBuffer zst_outbuffer; member
318 s->zst_outbuffer.dst = buffer; in zstdio_init()
319 s->zst_outbuffer.size = buf_size; in zstdio_init()
353 s->zst_outbuffer.pos = 0; in zstdio_reset()
364 while (s->zst_outbuffer.pos >= 4096) { in zst_flush_intermediate()
365 bytes_to_dump = rounddown(s->zst_outbuffer.pos, 4096); in zst_flush_intermediate()
378 s->zst_outbuffer.pos -= bytes_to_dump; in zst_flush_intermediate()
379 memmove(s->zst_outbuffer.dst, in zst_flush_intermediate()
380 (char *)s->zst_outbuffer.dst + bytes_to_dump, in zst_flush_intermediate()
381 s->zst_outbuffer.pos); in zst_flush_intermediate()
398 lastpos = s->zst_outbuffer.pos; in zstdio_flush()
400 rc = ZSTD_endStream(s->zst_stream, &s->zst_outbuffer); in zstdio_flush()
406 if (lastpos == s->zst_outbuffer.pos) { in zstdio_flush()
416 lastpos = s->zst_outbuffer.pos; in zstdio_flush()
424 if (s->zst_outbuffer.pos != 0) { in zstdio_flush()
425 error = cb(s->zst_buffer, s->zst_outbuffer.pos, s->zst_off, in zstdio_flush()
452 rc = ZSTD_compressStream(s->zst_stream, &s->zst_outbuffer, in zstdio_write()