/src/xz/src/liblzma/common/stream_flags_common.h
Line | Count | Source (jump to first uncovered line) |
1 | | /////////////////////////////////////////////////////////////////////////////// |
2 | | // |
3 | | /// \file stream_flags_common.h |
4 | | /// \brief Common stuff for Stream flags coders |
5 | | // |
6 | | // Author: Lasse Collin |
7 | | // |
8 | | // This file has been put into the public domain. |
9 | | // You can do whatever you want with this file. |
10 | | // |
11 | | /////////////////////////////////////////////////////////////////////////////// |
12 | | |
13 | | #ifndef LZMA_STREAM_FLAGS_COMMON_H |
14 | | #define LZMA_STREAM_FLAGS_COMMON_H |
15 | | |
16 | | #include "common.h" |
17 | | |
18 | | /// Size of the Stream Flags field |
19 | 216k | #define LZMA_STREAM_FLAGS_SIZE 2 |
20 | | |
21 | | extern const uint8_t lzma_header_magic[6]; |
22 | | extern const uint8_t lzma_footer_magic[2]; |
23 | | |
24 | | |
25 | | static inline bool |
26 | | is_backward_size_valid(const lzma_stream_flags *options) |
27 | 0 | { |
28 | 0 | return options->backward_size >= LZMA_BACKWARD_SIZE_MIN |
29 | 0 | && options->backward_size <= LZMA_BACKWARD_SIZE_MAX |
30 | 0 | && (options->backward_size & 3) == 0; |
31 | 0 | } Unexecuted instantiation: stream_flags_decoder.c:is_backward_size_valid Unexecuted instantiation: stream_flags_common.c:is_backward_size_valid |
32 | | |
33 | | #endif |