Planeshift
xdelta3-decode.h File Reference

Go to the source code of this file.

Macros

#define BYTE_CASE(expr, x, nstate)
 
#define OFFSET_CASE(expr, x, nstate)
 
#define SIZE_CASE(expr, x, nstate)
 
#define SRCORTGT(x)
 

Functions

static int xd3_decode_allocate (xd3_stream *stream, usize_t size, uint8_t **buf_ptr, usize_t *buf_alloc)
 
static int xd3_decode_emit (xd3_stream *stream)
 
static int xd3_decode_finish_window (xd3_stream *stream)
 
static int xd3_decode_init_window (xd3_stream *stream)
 
int xd3_decode_input (xd3_stream *stream)
 
static int xd3_decode_instruction (xd3_stream *stream)
 
static int xd3_decode_output_halfinst (xd3_stream *stream, xd3_hinst *inst)
 
static int xd3_decode_parse_halfinst (xd3_stream *stream, xd3_hinst *inst)
 
static int xd3_decode_secondary_sections (xd3_stream *secondary_stream)
 
static int xd3_decode_section (xd3_stream *stream, xd3_desect *section, xd3_decode_state nstate, int copy)
 
static int xd3_decode_sections (xd3_stream *stream)
 
static int xd3_decode_setup_buffers (xd3_stream *stream)
 

Macro Definition Documentation

#define BYTE_CASE (   expr,
  x,
  nstate 
)
Value:
do { \
if ( (expr) && \
((ret = xd3_decode_byte (stream, & (x))) != 0) ) { return ret; } \
stream->dec_state = (nstate); \
} while (0)
#define OFFSET_CASE (   expr,
  x,
  nstate 
)
Value:
do { \
if ( (expr) && \
((ret = xd3_decode_offset (stream, & (x))) != 0) ) { return ret; } \
stream->dec_state = (nstate); \
} while (0)
#define SIZE_CASE (   expr,
  x,
  nstate 
)
Value:
do { \
if ( (expr) && \
((ret = xd3_decode_size (stream, & (x))) != 0) ) { return ret; } \
stream->dec_state = (nstate); \
} while (0)
#define SRCORTGT (   x)
Value:
((((x) & VCD_SRCORTGT) == VCD_SOURCE) ? \
VCD_SOURCE : ((((x) & VCD_SRCORTGT) == \
VCD_TARGET) ? VCD_TARGET : 0))

Definition at line 22 of file xdelta3-decode.h.

Function Documentation

static int xd3_decode_allocate ( xd3_stream stream,
usize_t  size,
uint8_t **  buf_ptr,
usize_t buf_alloc 
)
static

Definition at line 104 of file xdelta3-decode.h.

static int xd3_decode_emit ( xd3_stream stream)
static

Definition at line 641 of file xdelta3-decode.h.

static int xd3_decode_finish_window ( xd3_stream stream)
static

Definition at line 525 of file xdelta3-decode.h.

static int xd3_decode_init_window ( xd3_stream stream)
static

Definition at line 33 of file xdelta3-decode.h.

int xd3_decode_input ( xd3_stream stream)

Definition at line 723 of file xdelta3-decode.h.

static int xd3_decode_instruction ( xd3_stream stream)
static

Definition at line 298 of file xdelta3-decode.h.

static int xd3_decode_output_halfinst ( xd3_stream stream,
xd3_hinst inst 
)
static

Definition at line 336 of file xdelta3-decode.h.

static int xd3_decode_parse_halfinst ( xd3_stream stream,
xd3_hinst inst 
)
static

Definition at line 206 of file xdelta3-decode.h.

static int xd3_decode_secondary_sections ( xd3_stream secondary_stream)
static

Definition at line 538 of file xdelta3-decode.h.

static int xd3_decode_section ( xd3_stream stream,
xd3_desect section,
xd3_decode_state  nstate,
int  copy 
)
static

Definition at line 129 of file xdelta3-decode.h.

static int xd3_decode_sections ( xd3_stream stream)
static

Definition at line 560 of file xdelta3-decode.h.

static int xd3_decode_setup_buffers ( xd3_stream stream)
static

Definition at line 48 of file xdelta3-decode.h.