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
.dzgeofile. - Capture
File - 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), andCaptureFile::tilereads 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 ofCapture; useCapture::readonly for small captures that you want in memory. - Capture
File Options - Options of
CaptureFile::openandCaptureFile::from_reader. - Capture
Writer - Writes a capture, flushing after every tile so a crashed run keeps its prefix.