diff options
author | Yann Collet <cyan@fb.com> | 2022-07-15 14:11:26 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2022-07-15 17:30:53 (GMT) |
commit | 6784e78e006329ba67eb799a1cb94dd7267a9241 (patch) | |
tree | 96330ac7e1f25829df98330cab8cc57eca44f35f /lib/lz4frame.h | |
parent | 0c620ce212d92d009f47293ea5e0b676c3380fbb (diff) | |
download | lz4-6784e78e006329ba67eb799a1cb94dd7267a9241.zip lz4-6784e78e006329ba67eb799a1cb94dd7267a9241.tar.gz lz4-6784e78e006329ba67eb799a1cb94dd7267a9241.tar.bz2 |
support skippable frames within pipe
fix #977
fseek() doesn't work for pipe,
switch to "read and forget" mode in such case.
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r-- | lib/lz4frame.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h index 1de09d8..7ebbfec 100644 --- a/lib/lz4frame.h +++ b/lib/lz4frame.h @@ -376,6 +376,8 @@ LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* dctx); * Streaming decompression functions *************************************/ +#define LZ4F_MAGICNUMBER 0x184D2204U +#define LZ4F_MAGIC_SKIPPABLE_START 0x184D2A50U #define LZ4F_MIN_SIZE_TO_KNOW_HEADER_LENGTH 5 /*! LZ4F_headerSize() : v1.9.0+ |