Prev | Current Page 866 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

..
superClass = > null,
// ... and does not implement Dynamic < T >
dynamic = > null,
statics = > {
// a list of static fields
{ name = > main,
type = > TFunction({},TEnum(Void,{})),
params = > null,
doc = > null,
get = > RNormal,
set = > RNormal,
platforms = > {},
isPublic = > true }
}
})
Serialization
Serialization is the process of transforming an object into a binary sequence and deserialization, or
unserialization, is the process of restoring the original object from the binary state. Serialization is mainly
used in two areas: transmission of information and data storage. The advantage of serialization, and
particularly the one provided by the haXe API, is that entire object graphs can be serialized in one step.
The haXe Serialization API uses a proprietary string format to transform objects into a medium storable
sequence of characters. Almost any kind of haXe type can be serialized and deserialized; the most
notable exceptions are platform - native objects (you cannot really serialize a Flash movie clip or a Neko
database connection object) and functions.


Pages:
854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878