Hi Lee,

> +If you request a checksum for compression, the checksum field in the 
> operation
> +structure, ``op->input_chksum``, will be filled with the checksum of the 
> input data.
> +
[Fiona] This is not correct - the checksum will always be in the 
op->output_chksum
The input_chksum field is for generating a checksum across the uncompressed 
data of multiple related ops

> +If you request a checksum for decompression, the checksum field in the 
> operation
> +structure, ``op->output_chksum``, will be filled with the checksum of the 
> output data.
> +
> +.. Note::
> +
> + For the compression case above, your output buffer will need to be large 
> enough to hold the compressed
> data plus a scratchpad for the checksum at the end, the scratchpad is 8 bytes 
> for CRC32 and 4 bytes for
> Adler32.
[Fiona] In the compression case is there no need for this scratchpad?


Reply via email to