src/liblzma/common/index_hash.c File Reference

Validates Index by using a hash function. More...

#include "common.h"
#include "index.h"
#include "check.h"

Data Structures

struct  lzma_index_hash_info
struct  lzma_index_hash_s

Functions

 LZMA_API (lzma_index_hash *)
 LZMA_API (void)
 Free memory allocated for the coder data structures.
 LZMA_API (lzma_vli)
 Calculate rough memory usage of easy encoder.
static lzma_ret hash_append (lzma_index_hash_info *info, lzma_vli unpadded_size, lzma_vli uncompressed_size)
 Updates the sizes and the hash without any validation.
 LZMA_API (lzma_ret)

Detailed Description

Validates Index by using a hash function.


Function Documentation

LZMA_API ( void   ) 

Free memory allocated for the coder data structures.

Rewind the Index.

Parameters:
strm Pointer to lzma_stream that is at least initialized with LZMA_STREAM_INIT.

After lzma_end(strm), strm->internal is guaranteed to be NULL. No other members of the lzma_stream structure are touched.

Note:
zlib indicates an error if application end()s unfinished stream structure. liblzma doesn't do this, and assumes that application knows what it is doing.

Rewind the Index so that next call to lzma_index_read() will return the first Record.

Free memory allocated for the coder data structures.

Rewind the Index.

If i is NULL, this does nothing.

Rewind the Index so that next call to lzma_index_read() will return the first Record.

LZMA_API ( uint64_t   ) 

Calculate rough memory usage of easy encoder.

Calculate memory usage for Index with given number of Records.

Calculate rough decoder memory usage of a preset.

This function is a wrapper for lzma_raw_encoder_memusage().

Parameters:
preset Compression preset (level and possible flags)

This function is a wrapper for lzma_raw_decoder_memusage().

Parameters:
preset Compression preset (level and possible flags)
static lzma_ret hash_append ( lzma_index_hash_info info,
lzma_vli  unpadded_size,
lzma_vli  uncompressed_size 
) [static]

Generated on Tue Oct 6 14:02:22 2009 for XZ Utils by  doxygen 1.6.1