QcComponentFrames::FieldReader Class
class QcComponentFrames::FieldReaderReads the fields of a known component of a version from a stream: a reference to a callable that outlives the read, without the allocation of a std::function. More...
| Header: | #include <server/storage/QcComponentFrames.h> |
Public Functions
| bool | operator()(QDataStream &stream, quint16 version, quint32 length) const |
Detailed Description
The callable is read(QDataStream &, quint16 version), or read(QDataStream &, quint16 version, quint32 length) for a reader that needs the component's length; it returns false for damaged data.
Member Function Documentation
bool FieldReader::operator()(QDataStream &stream, quint16 version, quint32 length) const
Reads the fields of version version from stream; length is the component's length. Returns false for damaged data.