Class ICompressedReader
Defined in File reader.hpp
Inheritance Relationships
Base Type
public mcap::IReadable(Struct IReadable)
Derived Types
public mcap::BufferReader(Class BufferReader)public mcap::LZ4Reader(Class LZ4Reader)public mcap::ZStdReader(Class ZStdReader)
Class Documentation
-
class ICompressedReader : public mcap::IReadable
An abstract interface for compressed readers.
Subclassed by mcap::BufferReader, mcap::LZ4Reader, mcap::ZStdReader
Public Functions
-
virtual ~ICompressedReader() override = default
-
virtual void reset(const std::byte *data, uint64_t size, uint64_t uncompressedSize) = 0
Reset the reader state, clearing any internal buffers and state, and initialize with new compressed data.
- Parameters:
data – Compressed data to read from.
size – Size of the compressed data in bytes.
uncompressedSize – Size of the data in bytes after decompression. A buffer of this size will be allocated for the uncompressed data.
-
virtual ~ICompressedReader() override = default