ArraySchema
A schema for arrays of T, written as a 4-byte element count followed by each element.
List, Set and Collection fields use the same format, so a List<Double> field has the same bytes as a Double[] field. Kotlin's primitive arrays have their own schemas (DoubleArraySchema and friends) that write the same bytes without boxing.
Binary format
The schema:
[4 bytes: tag] [element schema blob]Content copied to clipboard
An encoded array:
[4 bytes: element count N] [element1] [element2] ... [elementN]Content copied to clipboard
Properties
Functions
Link copied to clipboard
Writes the given object into the buffer.
Link copied to clipboard
Writes the whole schema definition, starting with the tag, into the buffer.