An in-memory IChunkWriter implementation that holds data in a temporary buffer before flushing to an ZStandard-compressed buffer.
More...
#include <writer.hpp>
An in-memory IChunkWriter implementation that holds data in a temporary buffer before flushing to an ZStandard-compressed buffer.
Definition at line 281 of file writer.hpp.
◆ ZStdWriter()
mcap::ZStdWriter::ZStdWriter |
( |
CompressionLevel |
compressionLevel, |
|
|
uint64_t |
chunkSize |
|
) |
| |
◆ ~ZStdWriter()
mcap::ZStdWriter::~ZStdWriter |
( |
| ) |
|
|
override |
◆ compressedData()
const std::byte* mcap::ZStdWriter::compressedData |
( |
| ) |
const |
|
overridevirtual |
◆ compressedSize()
uint64_t mcap::ZStdWriter::compressedSize |
( |
| ) |
const |
|
overridevirtual |
Returns the size in bytes of the compressed data. This will only be called after end()
.
Implements mcap::IChunkWriter.
◆ data()
const std::byte* mcap::ZStdWriter::data |
( |
| ) |
const |
|
overridevirtual |
◆ empty()
bool mcap::ZStdWriter::empty |
( |
| ) |
const |
|
overridevirtual |
◆ end()
void mcap::ZStdWriter::end |
( |
| ) |
|
|
overridevirtual |
Called when the writer wants to close the current output Chunk. After this call, data()
and size()
should return the data and size of the compressed data.
Implements mcap::IChunkWriter.
◆ handleClear()
void mcap::ZStdWriter::handleClear |
( |
| ) |
|
|
overridevirtual |
◆ handleWrite()
void mcap::ZStdWriter::handleWrite |
( |
const std::byte * |
data, |
|
|
uint64_t |
size |
|
) |
| |
|
overridevirtual |
◆ size()
uint64_t mcap::ZStdWriter::size |
( |
| ) |
const |
|
overridevirtual |
◆ compressedBuffer_
std::vector<std::byte> mcap::ZStdWriter::compressedBuffer_ |
|
private |
◆ uncompressedBuffer_
std::vector<std::byte> mcap::ZStdWriter::uncompressedBuffer_ |
|
private |
◆ zstdContext_
The documentation for this class was generated from the following file: