All chunk sizes must fit in a 32-bit integer because they cannot exceed
'out_chunk_size'.
* %false if the chunk compressor does not have space for the chunk at
* the present time. In the latter case, get_chunk() must be called to
* retrieve a compressed chunk before trying again. */
- bool (*submit_chunk)(struct chunk_compressor *, const void *, size_t);
+ bool (*submit_chunk)(struct chunk_compressor *, const void *, u32);
/* Get the next chunk of compressed data.
*
static bool
parallel_chunk_compressor_submit_chunk(struct chunk_compressor *_ctx,
- const void *chunk, size_t size)
+ const void *chunk, u32 size)
{
struct parallel_chunk_compressor *ctx = (struct parallel_chunk_compressor *)_ctx;
struct message *msg;
static bool
serial_chunk_compressor_submit_chunk(struct chunk_compressor *_ctx,
- const void *chunk, size_t size)
+ const void *chunk, u32 size)
{
struct serial_chunk_compressor *ctx = (struct serial_chunk_compressor*)_ctx;