libmobi
C library for handling MOBI format ebook documents
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields

Header of the Record 0 meta-record. More...

#include <mobi.h>

Data Fields

uint16_t compression_type
 
uint32_t text_length
 
uint16_t text_record_count
 
uint16_t text_record_size
 
uint16_t encryption_type
 
uint16_t unknown1
 

Detailed Description

Header of the Record 0 meta-record.

Field Documentation

uint16_t MOBIRecord0Header::compression_type

0; 1 == no compression, 2 = PalmDOC compression, 17480 = HUFF/CDIC compression

Examples:
mobitool.c.
uint16_t MOBIRecord0Header::encryption_type

12; 0 == no encryption, 1 = Old Mobipocket Encryption, 2 = Mobipocket Encryption

Examples:
common.c, and mobitool.c.
uint32_t MOBIRecord0Header::text_length

4; uncompressed length of the entire text of the book

Examples:
mobitool.c.
uint16_t MOBIRecord0Header::text_record_count

8; number of PDB records used for the text of the book

Examples:
mobitool.c.
uint16_t MOBIRecord0Header::text_record_size

10; maximum size of each record containing text, always 4096

Examples:
mobitool.c.
uint16_t MOBIRecord0Header::unknown1

14; usually 0

Examples:
mobitool.c.

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