XZ Utils  5.1.0alpha
Public Types | Data Fields
lzma_internal_s Struct Reference

#include <common.h>

Public Types

enum  {
  ISEQ_RUN, ISEQ_SYNC_FLUSH, ISEQ_FULL_FLUSH, ISEQ_FINISH,
  ISEQ_END, ISEQ_ERROR
}

Data Fields

lzma_next_coder next
 The actual coder that should do something useful.
enum lzma_internal_s:: { ... }  sequence
size_t avail_in
bool supported_actions [4]
 Indicates which lzma_action values are allowed by next.code.
bool allow_buf_error

Detailed Description

Internal data for lzma_strm_init, lzma_code, and lzma_end. A pointer to this is stored in lzma_stream.

Member Enumeration Documentation

anonymous enum

Track the state of the coder. This is used to validate arguments so that the actual coders can rely on e.g. that LZMA_SYNC_FLUSH is used on every call to lzma_code until next.code has returned LZMA_STREAM_END.

Field Documentation

lzma_next_coder lzma_internal_s::next

The actual coder that should do something useful.

Referenced by lzma_strm_init().

enum { ... } lzma_internal_s::sequence

Track the state of the coder. This is used to validate arguments so that the actual coders can rely on e.g. that LZMA_SYNC_FLUSH is used on every call to lzma_code until next.code has returned LZMA_STREAM_END.

Referenced by lzma_strm_init().

size_t lzma_internal_s::avail_in

A copy of lzma_stream avail_in. This is used to verify that the amount of input doesn't change once e.g. LZMA_FINISH has been used.

bool lzma_internal_s::supported_actions[4]

Indicates which lzma_action values are allowed by next.code.

Referenced by lzma_strm_init().

bool lzma_internal_s::allow_buf_error

If true, lzma_code will return LZMA_BUF_ERROR if no progress was made (no input consumed and no output produced by next.code).

Referenced by lzma_strm_init().


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