Api Sandbox BlobData
class

BlobData

public abstract class BlobData

Base class for properties that should be serialized to binary format instead of JSON. Used for large data structures that would be inefficient as JSON.

Properties

Name Type Description
Version virtual Int32 The version of this binary data format. Used for upgrade paths.

Methods

virtual Void Serialize(Writer writer)

Serialize this object to binary format.

virtual Void Deserialize(Reader reader)

Deserialize this object from binary format.

virtual Void Upgrade(Reader reader, Int32 fromVersion)

Optional upgrade path for old data versions. Called if the data version is older than current Version.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.BlobData