|
Enfusion Script API
|
Container for saving data in binary format. More...
Public Member Functions | |
| proto external void | ConfigureCompression (bool enabled) |
| Enable bitstuffing and value compression for data size reduction. | |
| proto external void | ConfigureNameValidation (bool enabled) |
| proto external void | ConfigureObjectSeeking (bool enabled) |
| When enabled it adds meta data to allow StartObject("name") calls to seek to their starting position, making it possible to ignore prior properties or to exit the sub object and re-seek to its start for a retry. | |
| proto external void | ConfigureSkippableObjects (bool enabled) |
| Adds neccessary meta data while writing objects so on load invalid/incomplete object reads can be skipped, while still making reads of the remaining binary stream possible. | |
| proto external bool | SaveToFile (string fileName) |
| proto external ref BinSerializationContainer | SaveToContainer () |
Public Member Functions inherited from Managed | |
| proto external ref Managed | Clone () |
| Return shallow copy of object, or null if it is not allowed (not public constructor) | |
Container for saving data in binary format.
| proto external void BinSerializationSaveContainer.ConfigureCompression | ( | bool | enabled | ) |
Enable bitstuffing and value compression for data size reduction.
Leave disable when attempting to debug the data. Enabled by default. Disabled by default in developer builds
| proto external void BinSerializationSaveContainer.ConfigureNameValidation | ( | bool | enabled | ) |
DEVELOPER BUILDS ONLY < Write each named variables name into the data stream to allow validation of correct read order. Enabled by default in developer builds. Parameter will do nothing in other builds.
| proto external void BinSerializationSaveContainer.ConfigureObjectSeeking | ( | bool | enabled | ) |
When enabled it adds meta data to allow StartObject("name") calls to seek to their starting position, making it possible to ignore prior properties or to exit the sub object and re-seek to its start for a retry.
| proto external void BinSerializationSaveContainer.ConfigureSkippableObjects | ( | bool | enabled | ) |
Adds neccessary meta data while writing objects so on load invalid/incomplete object reads can be skipped, while still making reads of the remaining binary stream possible.
Can be disabled to decrease data size if successful read is guranteed, or loss of the data stream is an acceptable use-case.
| proto external ref BinSerializationContainer BinSerializationSaveContainer.SaveToContainer | ( | ) |