EnumSchema
Encodes an enum constant as its 4-byte ordinal.
The schema lists the constant names, so a reader can show names instead of ordinals. The value type is T, not Enum<T>, so a channel is a LogChannel<MyEnum> and the schema works as a map key or array element.
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.