dash.utility.data.serialization

Members

Aliases

customSerializers
alias customSerializers = TypeTuple!(CustomSerializer!(vec2f, float[], vec => vec.vector[], arr => vec2f(arr), arr => arr.length == 2), CustomSerializer!(vec3f, float[], vec => vec.vector[], arr => vec3f(arr), arr => arr.length == 3), CustomSerializer!(quatf, float[], vec => vec.toEulerAngles.vector[], arr => fromEulerAngles(arr), arr => arr.length == 3))

A tuple of all supported serializers

defaultSerializer
alias defaultSerializer(T) = CustomSerializer!(T, T, t => t, t => t, t => true)

Serializer for all other types

isSerializerFor
alias isSerializerFor(T) = PApply!(serializerTypesMatch, T)

Predicate for std.typetupple

Enums

SerializationMode
enum SerializationMode

Modes of serialization.

Functions

deserializeFile
T deserializeFile(Resource file, SerializationMode mode = SerializationMode.Default)

Deserializes a file.

deserializeFileByName
Tuple!(T, Resource) deserializeFileByName(string fileName, SerializationMode mode = SerializationMode.Default)

Deserializes a file.

deserializeMultiFile
T[] deserializeMultiFile(Resource file, SerializationMode mode = SerializationMode.Default)

Deserializes a file with multiple documents.

Manifest constants

serializationFormats
enum serializationFormats;

Supported serialization formats.

Structs

CustomSerializer
struct CustomSerializer(_T, _Rep, alias _ser, alias _deser, alias _check)

Type to use when defining custom

Templates

PApply
template PApply(alias Target, T...)

For calling templated templates.

serializeToFile
template serializeToFile(bool prettyPrint = true)

Serializes an object to a file.

serializerFor
template serializerFor(T)

Get the serializer for a type

Meta