Skip to content

DemoStream

Iterates over the outer .dem container format, handling tick-delimited messages and Snappy decompression.

See also: How Proto Parsing Works


Generated API

gem.binary.stream.DemoStream

DemoStream

python
class DemoStream

Iterate outer demo-message frames from a Source 2 .dem source.

Source: src/gem/binary/stream.py:46

Methods

close

Signature: def DemoStream.close(self) -> None

Release memory-map and file descriptor resources, if any.

Source: src/gem/binary/stream.py:80

gem.binary.stream.OuterMessage

OuterMessage

python
class OuterMessage

A single top-level demo message frame.

Source: src/gem/binary/stream.py:31

Dataclass fields

NameTypeDefault
tickint-
msg_typeint-
databytes-