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

#include <method.h>

Data Fields

char constname
 
method_state_t *(* create )(data_t const *data)
 
result_t(* compress )(method_state_t *state, config_t const *config)
 
void(* destroy )(method_state_t *state)
 

Detailed Description

A method that compresses the data using config.

Field Documentation

◆ compress

result_t(* compress)(method_state_t *state, config_t const *config)

Compresses the data in the state using the given config.

Parameters
stateA pointer to the state returned by create().
Returns
The total compressed size on success, or an error code.

◆ create

Creates a state that must contain a member variable of method_state_t, and returns a pointer to that member variable.

This method can be used to do expensive work that only depends on the data, like loading the data file into a buffer.

◆ destroy

void(* destroy)(method_state_t *state)

Frees the state.

◆ name

char const * name

The identifier for this method in the results.


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