diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-05-26 14:48:48 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-05-26 14:48:48 +0300 |
commit | 083c23c680ff844846d177cfc58bb7a874e7e6b9 (patch) | |
tree | a6263783a9cb49f21ba562df7553e39e38ddcf99 /src/liblzma/api/lzma/block.h | |
parent | Remove undocumented alternative option names --bcj, --ppc, (diff) | |
download | xz-083c23c680ff844846d177cfc58bb7a874e7e6b9.tar.xz |
Make the raw value of the Check field available to applications
via lzma_block structure.
This changes ABI but not doesn't break API.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/api/lzma/block.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/liblzma/api/lzma/block.h b/src/liblzma/api/lzma/block.h index 566edce1..ab2bb5bf 100644 --- a/src/liblzma/api/lzma/block.h +++ b/src/liblzma/api/lzma/block.h @@ -207,6 +207,23 @@ typedef struct { */ lzma_filter *filters; + /** + * \brief Raw value stored in the Check field + * + * After successful coding, the first lzma_check_size(check) bytes + * of this array contain the raw value stored in the Check field. + * + * Note that CRC32 and CRC64 are stored in little endian byte order. + * Take it into account if you display the Check values to the user. + * + * Written by: + * - lzma_block_encoder() + * - lzma_block_decoder() + * - lzma_block_buffer_encode() + * - lzma_block_buffer_decode() + */ + uint8_t raw_check[64]; + /* * Reserved space to allow possible future extensions without * breaking the ABI. You should not touch these, because the names |