Function Encoder.setItemCount
Call this method before writing a batch of items in an array or a map. Then for each item, call [startItem()] followed by any of the other write methods of [Encoder]. The number of calls to [startItem()] must be equal to the count specified in [setItemCount()]. Once a batch is completed you can start another batch with [setItemCount()].
abstract void setItemCount
(
ulong itemCount
) @safe;
Parameters
Name | Description |
---|---|
itemCount | The number of [startItem()] calls to follow. |