XZ Utils  5.4.0
Public Types | Data Fields
lzma_file_info_coder Struct Reference

Public Types

enum  {
  SEQ_MAGIC_BYTES , SEQ_PADDING_SEEK , SEQ_PADDING_DECODE , SEQ_FOOTER ,
  SEQ_INDEX_INIT , SEQ_INDEX_DECODE , SEQ_HEADER_DECODE , SEQ_HEADER_COMPARE
}
 

Data Fields

enum lzma_file_info_coder:: { ... }  sequence
 
uint64_t file_cur_pos
 
uint64_t file_target_pos
 
uint64_t file_size
 Size of the .xz file (from the application). More...
 
lzma_next_coder index_decoder
 Index decoder. More...
 
lzma_vli index_remaining
 
lzma_indexthis_index
 The Index decoder will store the decoded Index in this pointer. More...
 
lzma_vli stream_padding
 Amount of Stream Padding in the current Stream. More...
 
lzma_indexcombined_index
 The final combined index is collected here. More...
 
lzma_index ** dest_index
 
uint64_t * external_seek_pos
 
uint64_t memlimit
 Memory usage limit. More...
 
lzma_stream_flags first_header_flags
 Stream Flags from the very beginning of the file. More...
 
lzma_stream_flags header_flags
 Stream Flags from Stream Header of the current Stream. More...
 
lzma_stream_flags footer_flags
 Stream Flags from Stream Footer of the current Stream. More...
 
size_t temp_pos
 
size_t temp_size
 
uint8_t temp [8192]
 

Field Documentation

◆ file_cur_pos

uint64_t lzma_file_info_coder::file_cur_pos

Absolute position of in[*in_pos] in the file. All code that modifies *in_pos also updates this. seek_to_pos() needs this to determine if we need to request the application to seek for us or if we can do the seeking internally by adjusting *in_pos.

Referenced by fill_temp().

◆ file_target_pos

uint64_t lzma_file_info_coder::file_target_pos

This refers to absolute positions of interesting parts of the input file. Sometimes it points to the beginning of a specific field and sometimes to the end of a field. The current target position at each moment is explained in the comments.

Referenced by reverse_seek().

◆ file_size

uint64_t lzma_file_info_coder::file_size

Size of the .xz file (from the application).

◆ index_decoder

lzma_next_coder lzma_file_info_coder::index_decoder

Index decoder.

◆ index_remaining

lzma_vli lzma_file_info_coder::index_remaining

Number of bytes remaining in the Index field that is currently being decoded.

◆ this_index

lzma_index* lzma_file_info_coder::this_index

The Index decoder will store the decoded Index in this pointer.

◆ stream_padding

lzma_vli lzma_file_info_coder::stream_padding

Amount of Stream Padding in the current Stream.

◆ combined_index

lzma_index* lzma_file_info_coder::combined_index

The final combined index is collected here.

◆ dest_index

lzma_index** lzma_file_info_coder::dest_index

Pointer from the application where to store the index information after successful decoding.

◆ external_seek_pos

uint64_t* lzma_file_info_coder::external_seek_pos

Pointer to lzma_stream.seek_pos to be used when returning LZMA_SEEK_NEEDED. This is set by seek_to_pos() when needed.

◆ memlimit

uint64_t lzma_file_info_coder::memlimit

Memory usage limit.

◆ first_header_flags

lzma_stream_flags lzma_file_info_coder::first_header_flags

Stream Flags from the very beginning of the file.

◆ header_flags

lzma_stream_flags lzma_file_info_coder::header_flags

Stream Flags from Stream Header of the current Stream.

◆ footer_flags

lzma_stream_flags lzma_file_info_coder::footer_flags

Stream Flags from Stream Footer of the current Stream.


The documentation for this struct was generated from the following file: