Class FileWriter

Inheritance Relationships

Base Type

Class Documentation

class FileWriter : public mcap::IWritable

Implements the IWritable interface used by McapWriter by wrapping a FILE* pointer created by fopen().

Public Functions

~FileWriter() override
Status open(std::string_view filename)
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().