inochi2d.core.serde

Inochi2D SerDe Interface

Public Imports

inp.format
public import inp.format;
Undocumented in source.

Members

Enums

isDeserializable
eponymoustemplate isDeserializable(T, ST)

Whether type T can be deserialized.

isSerializable
eponymoustemplate isSerializable(T)

Whether type T can be serialized.

Functions

deserialize
T deserialize(DataNode data, ST state)

Helper which deserializes to an internal intermediate value before returning it.

deserialize
void deserialize(DataNode data, T destination, ST state)
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
DataNode serialize(T toSerialize)

Serializes a given type

tryGet
T tryGet(DataNode data, ST state, T defaultValue)

Attempts to get a value from a JSON object by its key and type.

tryGet
T tryGet(DataNode object, ST state, string key, T defaultValue)

Attempts to get a value from a JSON object by its key and type.

tryGet
T tryGet(DataNode object, ST state, string key)

Attempts to get a value from a JSON object by its key and type.

tryGetRef
void tryGetRef(DataNode object, ST state, T dst, string key)

Attempts to get a value from a JSON object by its key and type.

tryGetRef
void tryGetRef(DataNode object, ST state, T dst, string key, T defaultValue)

Attempts to get a value from a JSON object by its key and type.

tryGetRef
void tryGetRef(DataNode object, ST state, T dst, size_t i)

Attempts to get a value from a JSON array by its index and type.

tryGetRef
void tryGetRef(DataNode object, ST state, T dst, size_t i, T defaultValue)

Attempts to get a value from a JSON array by its index and type.

Interfaces

IDeserializable
interface IDeserializable(ST)

Interface for classes that can be deserialized to JSON with custom code

ISerializable
interface ISerializable

Interface for classes that can be serialized to JSON with custom code

Meta

Authors

Luna Nielsen