An abstract interface for writing MCAP data.
More...
#include <writer.hpp>
|
| uint32_t | crc () |
| | Returns the CRC32 of the uncompressed data. More...
|
| |
| virtual void | end ()=0 |
| | Called when the writer is finished writing data to the output MCAP file. More...
|
| |
| | IWritable () noexcept |
| |
| void | resetCrc () |
| | Resets the CRC32 calculation. More...
|
| |
| virtual uint64_t | size () const =0 |
| | Returns the current size of the file in bytes. This must be equal to the sum of all size parameters passed to write(). More...
|
| |
| void | write (const std::byte *data, uint64_t size) |
| | Called whenever the writer needs to write data to the output MCAP file. More...
|
| |
| virtual | ~IWritable ()=default |
| |
An abstract interface for writing MCAP data.
Definition at line 98 of file writer.hpp.
◆ IWritable()
| mcap::IWritable::IWritable |
( |
| ) |
|
|
noexcept |
◆ ~IWritable()
| virtual mcap::IWritable::~IWritable |
( |
| ) |
|
|
virtualdefault |
◆ crc()
| uint32_t mcap::IWritable::crc |
( |
| ) |
|
Returns the CRC32 of the uncompressed data.
◆ end()
| virtual void mcap::IWritable::end |
( |
| ) |
|
|
pure virtual |
◆ handleWrite()
| virtual void mcap::IWritable::handleWrite |
( |
const std::byte * |
data, |
|
|
uint64_t |
size |
|
) |
| |
|
protectedpure virtual |
◆ resetCrc()
| void mcap::IWritable::resetCrc |
( |
| ) |
|
Resets the CRC32 calculation.
◆ size()
| virtual uint64_t mcap::IWritable::size |
( |
| ) |
const |
|
pure virtual |
◆ write()
| void mcap::IWritable::write |
( |
const std::byte * |
data, |
|
|
uint64_t |
size |
|
) |
| |
Called whenever the writer needs to write data to the output MCAP file.
- Parameters
-
| data | A pointer to the data to write. |
| size | Size of the data in bytes. |
◆ crc_
| uint32_t mcap::IWritable::crc_ |
|
private |
◆ crcEnabled
| bool mcap::IWritable::crcEnabled = false |
The documentation for this class was generated from the following file: