search for: out_block

Displaying 2 results from an estimated 2 matches for "out_block".

Did you mean: put_block
2020 Jul 10
2
[PATCH nbdkit] New filter: gzip
...st thread to call gzip_prepare uncompresses the whole plugin. */ +static int +do_uncompress (struct nbdkit_next_ops *next_ops, void *nxdata) +{ + int64_t compressed_size; + z_stream strm; + int zerr; + const char *tmpdir; + size_t len; + char *template; + CLEANUP_FREE char *in_block = NULL, *out_block = NULL; + + /* This was the same buffer size as used in the old plugin. As far + * as I know it was chosen at random. + */ + const size_t block_size = 128 * 1024; + + assert (size == -1); + + /* Get the size of the underlying plugin. */ + compressed_size = next_ops->get_size (nxdata);...
2020 Jul 10
0
Re: [PATCH nbdkit] New filter: gzip
...ole plugin. */ > +static int > +do_uncompress (struct nbdkit_next_ops *next_ops, void *nxdata) > +{ > + int64_t compressed_size; > + z_stream strm; > + int zerr; > + const char *tmpdir; > + size_t len; > + char *template; > + CLEANUP_FREE char *in_block = NULL, *out_block = NULL; > + > + /* This was the same buffer size as used in the old plugin. As far > + * as I know it was chosen at random. > + */ > + const size_t block_size = 128 * 1024; > + > + assert (size == -1); > + > + /* Get the size of the underlying plugin. */ > +...