diff options
author | Julian Andres Klode <jak@debian.org> | 2015-12-28 00:07:03 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-01-07 14:28:27 +0100 |
commit | e3fbd54cee3fffecbf4f7c384e0aad715fc68218 (patch) | |
tree | f6376dd48b8f6917c2bd36dca183f1d6eeb5c07f /apt-pkg/contrib/fileutl.h | |
parent | d4cfc24887851fa55f93a1a3c09f662b80f97729 (diff) |
FileFd: (native) LZ4 support
Implement native support for LZ4 compression, using the official
lz4 library.
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-rw-r--r-- | apt-pkg/contrib/fileutl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index 8619047a0..f33f7804b 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -45,6 +45,7 @@ class FileFd friend class GzipFileFdPrivate; friend class Bz2FileFdPrivate; friend class LzmaFileFdPrivate; + friend class Lz4FileFdPrivate; friend class DirectFileFdPrivate; friend class PipedFileFdPrivate; protected: @@ -75,7 +76,7 @@ class FileFd ReadOnlyGzip, WriteAtomic = ReadWrite | Create | Atomic }; - enum CompressMode { Auto = 'A', None = 'N', Extension = 'E', Gzip = 'G', Bzip2 = 'B', Lzma = 'L', Xz = 'X' }; + enum CompressMode { Auto = 'A', None = 'N', Extension = 'E', Gzip = 'G', Bzip2 = 'B', Lzma = 'L', Xz = 'X', Lz4='4' }; inline bool Read(void *To,unsigned long long Size,bool AllowEof) { |