aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/block_buffer_encoder.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2013-03-23 19:17:33 +0200
committerLasse Collin <lasse.collin@tukaani.org>2013-03-23 19:17:33 +0200
commitb465da5988dd59ad98fda10c2e4ea13d0b9c73bc (patch)
tree00766ec252f22dde85350b88ec0e7ef276f9ee62 /src/liblzma/common/block_buffer_encoder.h
parentAvoid unneeded use of awk in xzless. (diff)
downloadxz-b465da5988dd59ad98fda10c2e4ea13d0b9c73bc.tar.xz
liblzma: Add lzma_block_uncomp_encode().
This also adds a new internal function lzma_block_buffer_bound64() which is similar to lzma_block_buffer_bound() but uses uint64_t instead of size_t.
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/block_buffer_encoder.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/liblzma/common/block_buffer_encoder.h b/src/liblzma/common/block_buffer_encoder.h
new file mode 100644
index 00000000..653207f7
--- /dev/null
+++ b/src/liblzma/common/block_buffer_encoder.h
@@ -0,0 +1,24 @@
+///////////////////////////////////////////////////////////////////////////////
+//
+/// \file block_buffer_encoder.h
+/// \brief Single-call .xz Block encoder
+//
+// Author: Lasse Collin
+//
+// This file has been put into the public domain.
+// You can do whatever you want with this file.
+//
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef LZMA_BLOCK_BUFFER_ENCODER_H
+#define LZMA_BLOCK_BUFFER_ENCODER_H
+
+#include "common.h"
+
+
+/// uint64_t version of lzma_block_buffer_bound(). It is used by
+/// stream_encoder_mt.c. Probably the original lzma_block_buffer_bound()
+/// should have been 64-bit, but fixing it would break the ABI.
+extern uint64_t lzma_block_buffer_bound64(uint64_t uncompressed_size);
+
+#endif