Class StreamWriter

Inheritance Relationships

Base Type

Class Documentation

class StreamWriter : public mcap::IWritable

Implements the IWritable interface used by McapWriter by wrapping a std::ostream stream.

Public Functions

StreamWriter(std::ostream &stream)
virtual void handleWrite(const std::byte *data, uint64_t size) override
virtual void end() override

Called when the writer is finished writing data to the output MCAP file.

virtual uint64_t size() const override

Returns the current size of the file in bytes. This must be equal to the sum of all size parameters passed to write().