This class can be used in two ways:
- create a
new Unserializer()instance with a given serialization String, then call its
unserialize()method until all values are extracted
Unserializer.run()to unserialize a single value from a given String
The specification of the serialization format can be found here: https://haxe.org/manual/serialization/format
staticDEFAULT_RESOLVER:TypeResolver = new DefaultResolver()
This value can be set to use custom type resolvers.
A type resolver must provide two methods:
`Class` from a class name
`Enum` from an enum name
This value is applied when a new
Unserializer instance is created.
Changing it afterwards has no effect on previously created instances.
Unserializes the next part of
this Unserializer instance and returns
the according value.
this Unserializer instance contains no more or invalid data, an
exception is thrown.
This operation may fail on structurally valid data if a type cannot be resolved or if a field cannot be set. This can happen when unserializing Strings that were serialized on a different Haxe target, in which the serialization side has to make sure not to include platform-specific data.
Classes are created from
Type.createEmptyInstance, which means their
constructors are not called.