Skip to main content

Module capture

Module capture 

Source
Expand description

.dzgeo capture files (spec 3.8): the world params and the tiles of a run, so a run can be replayed without a server.

Layout, little-endian: DZGC, u32 version = 1, a block (u32 size, bytes) with the world params payload (without the protocol version), then one block per tile (the message-5 payload).

Structsยง

Capture
A capture read from a .dzgeo file.
CaptureFile
A capture that is indexed, not loaded: opening reads the world params and the (x, z) of every record (8 bytes each, skipping the rest by seeking), and CaptureFile::tile reads one record on demand. Memory is proportional to the number of indexed tiles (at most the range) plus the tiles in flight, so a range of a multi-gigabyte capture needs only the tiles of that range. The format is the one of Capture; use Capture::read only for small captures that you want in memory.
CaptureFileOptions
Options of CaptureFile::open and CaptureFile::from_reader.
CaptureWriter
Writes a capture, flushing after every tile so a crashed run keeps its prefix.