Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
lzma_simple_coder Struct Reference

#include <simple_private.h>

Data Fields

lzma_next_coder next
 Next filter in the chain.
 
bool end_was_reached
 True if the next coder in the chain has returned LZMA_STREAM_END.
 
bool is_encoder
 
size_t(* filter )(void *simple, uint32_t now_pos, bool is_encoder, uint8_t *buffer, size_t size)
 
void * simple
 
uint32_t now_pos
 
size_t allocated
 Size of the memory allocated for the buffer.
 
size_t pos
 
size_t filtered
 
size_t size
 
uint8_t buffer []
 Temporary buffer.
 

Field Documentation

◆ allocated

size_t allocated

Size of the memory allocated for the buffer.

◆ buffer

uint8_t buffer

Temporary buffer.

◆ end_was_reached

bool end_was_reached

True if the next coder in the chain has returned LZMA_STREAM_END.

◆ filter

size_t(* filter)(void *simple, uint32_t now_pos, bool is_encoder, uint8_t *buffer, size_t size)

Pointer to filter-specific function, which does the actual filtering.

◆ filtered

size_t filtered

buffer[filtered] is the first unfiltered byte. When pos is smaller than filtered, there is unflushed filtered data in the buffer.

◆ is_encoder

bool is_encoder

True if filter() should encode the data; false to decode. Currently all simple filters use the same function for encoding and decoding, because the difference between encoders and decoders is very small.

◆ next

Next filter in the chain.

◆ now_pos

uint32_t now_pos

The lowest 32 bits of the current position in the data. Most filters need this to do conversions between absolute and relative addresses.

◆ pos

size_t pos

Flushing position in the temporary buffer. buffer[pos] is the next byte to be copied to out[].

◆ simple

void * simple

Pointer to filter-specific data, or NULL if filter doesn't need any extra data.

◆ size

size_t size

Total number of bytes (both filtered and unfiltered) currently in the temporary buffer.


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