Implements the IWritable interface used by McapWriter by wrapping a FILE* pointer created by fopen().
More...
#include <writer.hpp>
Implements the IWritable interface used by McapWriter by wrapping a FILE* pointer created by fopen().
Definition at line 155 of file writer.hpp.
◆ ~FileWriter()
mcap::FileWriter::~FileWriter |
( |
| ) |
|
|
override |
◆ end()
void mcap::FileWriter::end |
( |
| ) |
|
|
overridevirtual |
Called when the writer is finished writing data to the output MCAP file.
Implements mcap::IWritable.
◆ handleWrite()
void mcap::FileWriter::handleWrite |
( |
const std::byte * |
data, |
|
|
uint64_t |
size |
|
) |
| |
|
overridevirtual |
◆ open()
◆ size()
uint64_t mcap::FileWriter::size |
( |
| ) |
const |
|
overridevirtual |
Returns the current size of the file in bytes. This must be equal to the sum of all size
parameters passed to write()
.
Implements mcap::IWritable.
◆ file_
std::FILE* mcap::FileWriter::file_ = nullptr |
|
private |
◆ size_
uint64_t mcap::FileWriter::size_ = 0 |
|
private |
The documentation for this class was generated from the following file: