mcap.data_stream module

class mcap.data_stream.ReadDataStream(stream: IO[bytes], calculate_crc: bool = False)[source]

Bases: object

checksum() int[source]
property count: int
read(length: int) bytes[source]
read1() int[source]
read2() int[source]
read4() int[source]
read8() int[source]
read_prefixed_string() str[source]
class mcap.data_stream.RecordBuilder[source]

Bases: object

property count: int
end()[source]
finish_record()[source]
start_record(opcode: Opcode)[source]
write(data: bytes)[source]
write1(value: int)[source]
write2(value: int)[source]
write4(value: int)[source]
write8(value: int)[source]
write_prefixed_string(value: str)[source]