VirtualBox

source: vbox/trunk/src/libs/liblzma-5.8.1/common/stream_flags_common.h@ 108911

Last change on this file since 108911 was 108911, checked in by vboxsync, 4 weeks ago

libs/liblzma: Applied and adjusted our liblzma changes to 5.8.1 and export to OSE. jiraref:VBP-1635

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
  • Property sync-process set to export
File size: 871 bytes
Line 
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#define LZMA_STREAM_FLAGS_SIZE 2
19
20lzma_attr_visibility_hidden
21extern const uint8_t lzma_header_magic[6];
22
23lzma_attr_visibility_hidden
24extern const uint8_t lzma_footer_magic[2];
25
26
27static inline bool
28is_backward_size_valid(const lzma_stream_flags *options)
29{
30 return options->backward_size >= LZMA_BACKWARD_SIZE_MIN
31 && options->backward_size <= LZMA_BACKWARD_SIZE_MAX
32 && (options->backward_size & 3) == 0;
33}
34
35#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette