the ArrayBuffer which contains the value
Clones this SwitchSerializer, which copies the current state. The deFinalize argument allows you to lift the finalize state.
This method needs to be called after all registers are done to make this serializer usable. The reason is that this serializer needs an internal EnumSerializer to work which needs to be created at some point.
Registers a serializer which will be used to serialize the value when the field (defined in the constructor) has the value equal to the value given as id. If there is already another serializer attached to this id it will be overwritten.
the id the field has to be to use this serializer
the serializer to use
Shortcut which creates an appropriately sized ArrayBuffer for the value and serializes the value.
the value to serialize
Generated using TypeDoc
Shortcut which deserializes the value and assumes the whole ArrayBuffer for this action.