Class BufferWriter
Defined in File writer.hpp
Inheritance Relationships
Base Type
public mcap::IChunkWriter(Class IChunkWriter)
Class Documentation
-
class BufferWriter : public mcap::IChunkWriter
An in-memory IChunkWriter implementation backed by a growable buffer.
Public Functions
-
virtual void handleWrite(const std::byte *data, uint64_t size) override
-
virtual void end() override
Called when the writer wants to close the current output Chunk. After this call,
data()andsize()should return the data and size of the compressed data.
-
virtual uint64_t size() const override
Returns the size in bytes of the uncompressed data.
-
virtual uint64_t compressedSize() const override
Returns the size in bytes of the compressed data. This will only be called after
end().
-
virtual bool empty() const override
Returns true if
write()has never been called since initialization or the last call toclear().
-
virtual void handleClear() override
-
virtual const std::byte *data() const override
Returns a pointer to the uncompressed data.
-
virtual void handleWrite(const std::byte *data, uint64_t size) override