libmobi
C library for handling MOBI format ebook documents
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

◆ compression_type

uint16_t MOBIRecord0Header::compression_type

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

Examples
mobitool.c.

◆ encryption_type

uint16_t MOBIRecord0Header::encryption_type

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

Examples
common.c, and mobitool.c.

◆ text_length

uint32_t MOBIRecord0Header::text_length

4; uncompressed length of the entire text of the book

Examples
mobitool.c.

◆ text_record_count

uint16_t MOBIRecord0Header::text_record_count

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

Examples
mobitool.c.

◆ text_record_size

uint16_t MOBIRecord0Header::text_record_size

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

Examples
mobitool.c.

◆ unknown1

uint16_t MOBIRecord0Header::unknown1

14; usually 0

Examples
mobitool.c.

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