the type to produce when deserializing
contains all fields, is typically a subset of Class and is used to construct an instance of it
Creates an instance of the FixableBeetStruct.
fixed or fixable de/serializers for each field of the {@link Class}
the function that creates an instance of {@link Class} from the args
identifies this struct for diagnostics/debugging purposes
Deserializes an instance of the Class from the provided buffer starting to read at the provided offset.
[instance of Class, offset into buffer after deserialization completed]
Serializes the provided instance into a new {@link Buffer}
NOTE: that the instance
is traversed and each of its fields accessed
twice, once to derive a fixed size BeetStruct and then use it to
serialize the instance
.
Therefore ensure that none of the properties that are part of the struct
have side effects, i.e. via Getter
s.
of the struct to serialize
allows to override the size fo the created Buffer and defaults to the size of the struct to serialize
Generated using TypeDoc
Configures a class or any JavaScript object type for de/serialization aka read/write. Not all fields of that class have to be of fixed size. If none of the fields requires a FixableBeet use the BeetStruct instead.