class BufferWriter

Declaration

class BufferWriter : public IChunkWriter { /* full declaration omitted */ };

Declared at: mcap/include/mcap/writer.hpp:253

Inherits from: IChunkWriter

Member Variables

Inherited from IWritable:

public crcEnabled = false

Method Overview

Inherited from IChunkWriter:

Inherited from IWritable:

Methods

BufferWriter(uint64_t chunkSize = 0)

Declared at: mcap/include/mcap/writer.hpp:255

Parameters

uint64_t chunkSize = 0

const int* compressedData() const

Declared at: mcap/include/mcap/writer.hpp:264

uint64_t compressedSize() const

Description

Returns the size in bytes of the compressed data. This will only be called after `end()`.

Declared at: mcap/include/mcap/writer.hpp:260

const int* data() const

Declared at: mcap/include/mcap/writer.hpp:263

bool empty() const

Description

Returns true if `write()` has never been called since initialization or the last call to `clear()`.

Declared at: mcap/include/mcap/writer.hpp:261

void end()

Description

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.

Declared at: mcap/include/mcap/writer.hpp:258

void handleClear()

Declared at: mcap/include/mcap/writer.hpp:262

void handleWrite(const int* data, uint64_t size)

Declared at: mcap/include/mcap/writer.hpp:257

Parameters

const int* data
uint64_t size

uint64_t size() const

Description

Returns the size in bytes of the uncompressed data.

Declared at: mcap/include/mcap/writer.hpp:259