/src/xz/src/liblzma/common/stream_flags_common.h
Line | Count | Source |
1 | | // SPDX-License-Identifier: 0BSD |
2 | | |
3 | | /////////////////////////////////////////////////////////////////////////////// |
4 | | // |
5 | | /// \file stream_flags_common.h |
6 | | /// \brief Common stuff for Stream flags coders |
7 | | // |
8 | | // Author: Lasse Collin |
9 | | // |
10 | | /////////////////////////////////////////////////////////////////////////////// |
11 | | |
12 | | #ifndef LZMA_STREAM_FLAGS_COMMON_H |
13 | | #define LZMA_STREAM_FLAGS_COMMON_H |
14 | | |
15 | | #include "common.h" |
16 | | |
17 | | /// Size of the Stream Flags field |
18 | 540k | #define LZMA_STREAM_FLAGS_SIZE 2 |
19 | | |
20 | | lzma_attr_visibility_hidden |
21 | | extern const uint8_t lzma_header_magic[6]; |
22 | | |
23 | | lzma_attr_visibility_hidden |
24 | | extern const uint8_t lzma_footer_magic[2]; |
25 | | |
26 | | |
27 | | static inline bool |
28 | | is_backward_size_valid(const lzma_stream_flags *options) |
29 | 4.06k | { |
30 | 4.06k | return options->backward_size >= LZMA_BACKWARD_SIZE_MIN |
31 | 4.06k | && options->backward_size <= LZMA_BACKWARD_SIZE_MAX |
32 | 4.06k | && (options->backward_size & 3) == 0; |
33 | 4.06k | } Unexecuted instantiation: stream_flags_common.c:is_backward_size_valid Unexecuted instantiation: stream_flags_decoder.c:is_backward_size_valid stream_flags_encoder.c:is_backward_size_valid Line | Count | Source | 29 | 4.06k | { | 30 | 4.06k | return options->backward_size >= LZMA_BACKWARD_SIZE_MIN | 31 | 4.06k | && options->backward_size <= LZMA_BACKWARD_SIZE_MAX | 32 | 4.06k | && (options->backward_size & 3) == 0; | 33 | 4.06k | } |
Unexecuted instantiation: index.c:is_backward_size_valid |
34 | | |
35 | | #endif |