Lines Matching refs:zst_outbuffer
266 ZSTD_outBuffer zst_outbuffer; member
320 s->zst_outbuffer.dst = buffer; in zstdio_init()
321 s->zst_outbuffer.size = buf_size; in zstdio_init()
350 s->zst_outbuffer.pos = 0; in zstdio_reset()
361 while (s->zst_outbuffer.pos >= 4096) { in zst_flush_intermediate()
362 bytes_to_dump = rounddown(s->zst_outbuffer.pos, 4096); in zst_flush_intermediate()
375 s->zst_outbuffer.pos -= bytes_to_dump; in zst_flush_intermediate()
376 memmove(s->zst_outbuffer.dst, in zst_flush_intermediate()
377 (char *)s->zst_outbuffer.dst + bytes_to_dump, in zst_flush_intermediate()
378 s->zst_outbuffer.pos); in zst_flush_intermediate()
395 lastpos = s->zst_outbuffer.pos; in zstdio_flush()
397 rc = ZSTD_endStream(s->zst_stream, &s->zst_outbuffer); in zstdio_flush()
403 if (lastpos == s->zst_outbuffer.pos) { in zstdio_flush()
413 lastpos = s->zst_outbuffer.pos; in zstdio_flush()
421 if (s->zst_outbuffer.pos != 0) { in zstdio_flush()
422 error = cb(s->zst_buffer, s->zst_outbuffer.pos, s->zst_off, in zstdio_flush()
449 rc = ZSTD_compressStream(s->zst_stream, &s->zst_outbuffer, in zstdio_write()