nanover.recording.writing module
- class nanover.recording.writing.Serializable(*args, **kwargs)
Bases:
Protocol
- SerializeToString() bytes
- nanover.recording.writing.record_entries(io: BinaryIO, entries)
- nanover.recording.writing.record_messages(io: BinaryIO, messages, start_time: int | None = None)
- nanover.recording.writing.record_messages_to_file(path, messages: Iterable[Serializable])
Write a sequence of messages to a recording file.
- Parameters:
path – Path of recording file to write to.
messages – Iterable sequence of messages to record.
- nanover.recording.writing.write_entry(io: BinaryIO, timestamp: int, message: Serializable)
- nanover.recording.writing.write_header(io: BinaryIO)
- nanover.recording.writing.write_u128(io: BinaryIO, value: int)
- nanover.recording.writing.write_u64(io: BinaryIO, value: int)