Skip to main content

Module data

Module data 

Source
Expand description

Memory-mapped data.NNN archive reader. Reader for CASC data.NNN archive files.

Each archive file contains a sequence of entries, where every entry starts with a 30-byte header (EKey hash in reversed byte order, size, and flags) followed by the BLTE-encoded payload. Files are memory-mapped for efficient random access via DataStore.

Structs§

DataHeader
Parsed data header from a data.NNN file.
DataStore
Manages memory-mapped data.NNN files.

Constants§

DATA_HEADER_SIZE
Size of the per-entry header in a data.NNN file.

Functions§

parse_data_header
Parse the 30-byte data header. The on-disk EKey is stored in reversed byte order; this function restores it to the normal order.