Serializer

Serializer

package haxe

Available on all platforms

The Serializer class can be used to encode values and objects into a String, from which the Unserializer class can recreate the original representation.

This class can be used in two ways:

  • create a new Serializer() instance, call its serialize() method with any argument and finally retrieve the String representation from toString()
  • call Serializer.run() to obtain the serialized representation of a single argument

Serialization is guaranteed to work for all haxe-defined classes, but may or may not work for instances of external/native classes.

The specifica