GLG Toolkit, JavaScript Library  Version 4.6
Saving and Serialization

This group contains methods for saving and serializing either drawings or individual objects. More...

Detailed Description

This group contains methods for saving and serializing either drawings or individual objects.

Functions

Uint8List SaveObject (String encoding)
 Serializes the object into a byte array using the specified encoding. More...
 

Function Documentation

◆ SaveObject()

Uint8List SaveObject ( String  encoding)

Serializes the object into a byte array using the specified encoding.

This method serializes the object and all its subsidiary objects into a byte array using the GLG ASCII save format that provides maximum portability between different deployment environments.

Parameters
encodingDefines encoding to be used for string encoding, "ascii", "latin1" or "utf8". Pass null to use the default Latin1 encoding.
Returns
Byte array that represents the serialized object or null on failure.