Rizin
unix-like reverse engineering framework and cli tools
msoab_compressor Struct Reference

#include <mspack.h>

Public Attributes

int(* compress )(struct msoab_compressor *self, const char *input, const char *output)
 
int(* compress_incremental )(struct msoab_compressor *self, const char *input, const char *base, const char *output)
 

Detailed Description

A compressor for the Offline Address Book (OAB) format.

All fields are READ ONLY.

See also
mspack_create_oab_compressor(), mspack_destroy_oab_compressor()

Definition at line 2255 of file mspack.h.

Member Data Documentation

◆ compress

int(* msoab_compressor::compress)(struct msoab_compressor *self, const char *input, const char *output)

Compress a full OAB file.

The input file will be read and the compressed contents written to the output file.

Parameters
selfa self-referential pointer to the msoab_decompressor instance being called
inputthe filename of the input file. This is passed directly to mspack_system::open().
outputthe filename of the output file. This is passed directly to mspack_system::open().
Returns
an error code, or MSPACK_ERR_OK if successful

Definition at line 2270 of file mspack.h.

◆ compress_incremental

int(* msoab_compressor::compress_incremental)(struct msoab_compressor *self, const char *input, const char *base, const char *output)

Generate a compressed incremental OAB patch file.

The two uncompressed files "input" and "base" will be read, and an incremental patch to generate "input" from "base" will be written to the output file.

Parameters
selfa self-referential pointer to the msoab_compressor instance being called
inputthe filename of the input file containing the new version of its contents. This is passed directly to mspack_system::open().
basethe filename of the original base file containing the old version of its contents, against which the incremental patch shall generated. This is passed directly to mspack_system::open().
outputthe filename of the output file. This is passed directly to mspack_system::open().
Returns
an error code, or MSPACK_ERR_OK if successful

Definition at line 2294 of file mspack.h.


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