PrimitiveArraySchema
Base for the schemas of Kotlin's primitive arrays.
ArraySchema cannot encode a double[]. It is a FateSchema<Array<T>>, so its methods erase to take Object[], and a primitive array is not one. Boxing with toTypedArray() would allocate a whole array in every objSize and encodeObject call, which is twice per logged value.
These schemas write the ARRAY format directly. The bytes match the boxed version, so readers need no changes. elementSchema describes an element in the schema blob. Writing does not go through it, because elements are encoded inline.
Inheritors
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.
Link copied to clipboard
Returns the number of bytes encodeObject writes for the given object.