A lazy-evaluated decoder of a sequence.
Instead of decoding/allocating the whole collection at once, you can wrap the decoder into SequenceView to do it lazily.
SequenceView
Collection items can be decoded fully (materialized) or can just be requested as views.
Optional
Readonly
Length of the sequence (either already decoded or given if fixed).
Iterate over field elements of the view.
Return an encoded value of that object.
Retrieve item at given index.
The item can be either materialized or it's view can be requested.
Create an array of all views mapped to some particular value.
A lazy-evaluated decoder of a sequence.
Instead of decoding/allocating the whole collection at once, you can wrap the decoder into
SequenceViewto do it lazily.Collection items can be decoded fully (materialized) or can just be requested as views.