libmobi
C library for handling MOBI format ebook documents
Data Fields
MOBIHuffCdic Struct Reference

Parsed data from HUFF and CDIC records needed to unpack huffman compressed text. More...

#include <compression.h>

Data Fields

size_t index_count
 
size_t index_read
 
size_t code_length
 
uint32_t table1 [256]
 
uint32_t mincode_table [HUFF_CODETABLE_SIZE]
 
uint32_t maxcode_table [HUFF_CODETABLE_SIZE]
 
uint16_t * symbol_offsets
 
unsigned char ** symbols
 

Detailed Description

Parsed data from HUFF and CDIC records needed to unpack huffman compressed text.

Field Documentation

◆ code_length

size_t MOBIHuffCdic::code_length

Code length value stored in CDIC record header

◆ index_count

size_t MOBIHuffCdic::index_count

Total number of indices in all CDIC records, stored in each CDIC record header

◆ index_read

size_t MOBIHuffCdic::index_read

Number of indices parsed, used by parser

◆ maxcode_table

uint32_t MOBIHuffCdic::maxcode_table[HUFF_CODETABLE_SIZE]

Table of big-endian maxcodes from HUFF record data2

◆ mincode_table

uint32_t MOBIHuffCdic::mincode_table[HUFF_CODETABLE_SIZE]

Table of big-endian mincodes from HUFF record data2

◆ symbol_offsets

uint16_t* MOBIHuffCdic::symbol_offsets

Index of symbol offsets parsed from CDIC records (index_count entries)

◆ symbols

unsigned char** MOBIHuffCdic::symbols

Array of pointers to start of symbols data in each CDIC record (index = number of CDIC record)

◆ table1

uint32_t MOBIHuffCdic::table1[256]

Table of big-endian indices from HUFF record data1


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