Collects a wrapper sequence of rows the stream cannot read on its own, into inline storage.
More...
Collects a wrapper sequence of rows the stream cannot read on its own, into inline storage.
FixedMessageSeq reads a struct/union element or a row of native scalars itself. A row that is itself a wrapper sequence (array<array<string>>, array<array<struct>>, deeper) is neither, and an enum or boolean row has to bind through a view of its elements. For those the row read is the caller's: Reader. It is the only part of a row collector that differs between schemas; the rest is FixedMessageSeq's rule, unchanged and in the same order — the §7.3 skip first, then the index bound against the inline capacity, then the placement at the index id (see FixedMessageSeq for why each comes where it does).
- Template Parameters
-
| Container | Inline vector of rows. |
| Reader | The row read, one level down. A default-constructible type with
static constexpr Wire wire(), the wire type a row of this schema arrives with — Wire::SequenceStart for a row that is a wrapper sequence, the array wire type of the backing integer for an enum or boolean row; and
void operator()(IStreamImpl &, Elem &, size_t count), binding the row that was placed; count is the element count the stream announced for it, as IStreamImpl::readArray takes it.
|
wire() is a function rather than a constant because a local class — which is where generated code declares the reader, next to the field it reads — may not have static data members.
Definition at line 355 of file seq.hpp.