QtCraft API C++ classes QML types Handbook

QcComponentFrames::Writer Class

class QcComponentFrames::Writer

Writes the components of one entry straight into the entry's stream: the known ones in the order they are added, each followed by its kept tail, then the kept components of unknown ids. More...

Header: #include <server/storage/QcComponentFrames.h>

Public Functions

void add(quint16 id, quint16 version, Write write)
void finish()

Detailed Description

The count and each length are written as placeholders and filled in when known (the stream's device seeks).

Member Function Documentation

template <typename Write> void Writer::add(quint16 id, quint16 version, Write write)

Adds the known component id of version whose fields write writes (called with the stream).

void Writer::finish()

Writes the kept components of unknown ids and the count.