Rizin
unix-like reverse engineering framework and cli tools
filter_flags_encoder.c File Reference

Encodes a Filter Flags field. More...

#include "filter_encoder.h"

Go to the source code of this file.

Functions

 LZMA_API (lzma_ret)
 

Detailed Description

Encodes a Filter Flags field.

Definition in file filter_flags_encoder.c.

Function Documentation

◆ LZMA_API()

LZMA_API ( lzma_ret  )

Definition at line 16 of file filter_flags_encoder.c.

18 {
20  return LZMA_PROG_ERROR;
21 
22  return_if_error(lzma_properties_size(size, filter));
23 
24  *size += lzma_vli_size(filter->id) + lzma_vli_size(*size);
25 
26  return LZMA_OK;
27 }
voidpf void uLong size
Definition: ioapi.h:138
#define return_if_error(expr)
Return if expression doesn't evaluate to LZMA_OK.
Definition: common.h:278
#define LZMA_FILTER_RESERVED_START
Definition: common.h:67
@ LZMA_PROG_ERROR
Programming error.
Definition: base.h:218
@ LZMA_OK
Operation completed successfully.
Definition: base.h:58

References LZMA_FILTER_RESERVED_START, LZMA_OK, LZMA_PROG_ERROR, and return_if_error.