asdf.serialization

ASDF and JSON Serialization

For aggregate types the order of the (de)serialization is the folowing: 1. All public fields of alias ? this that are not hidden by members of this (recursively). 2. All public fields of this. 3. All public properties of alias ? this that are not hidden by members of this (recursively). 4. All public properties of this.

Publicly imports mir.serde from the mir-algorithm package.

Public Imports

mir.serde
public import mir.serde;
Undocumented in source.

Members

Aliases

DeserializationException
deprecated alias DeserializationException = SerdeException
Undocumented in source.
serializationIgnore
deprecated alias serializationIgnore = serdeIgnore
Undocumented in source.
serializationIgnoreDefault
deprecated alias serializationIgnoreDefault = serdeIgnoreDefault
Undocumented in source.
serializationIgnoreIn
deprecated alias serializationIgnoreIn = serdeIgnoreIn
Undocumented in source.
serializationIgnoreOut
deprecated alias serializationIgnoreOut = serdeIgnoreOut
Undocumented in source.
serializationIgnoreOutIf
deprecated alias serializationIgnoreOutIf = serdeIgnoreOutIf
Undocumented in source.
serializationKeyOut
deprecated alias serializationKeyOut = serdeKeyOut
Undocumented in source.
serializationKeys
deprecated alias serializationKeys = serdeKeys
Undocumented in source.
serializationLikeArray
deprecated alias serializationLikeArray = serdeLikeList
Undocumented in source.
serializationLikeObject
deprecated alias serializationLikeObject = serdeLikeStruct
Undocumented in source.
serializationScoped
deprecated alias serializationScoped = serdeScoped
Undocumented in source.
serializationTransformIn
deprecated alias serializationTransformIn = serdeTransformIn
Undocumented in source.
serializationTransformOut
deprecated alias serializationTransformOut = serdeTransformOut
Undocumented in source.
serializedAs
deprecated alias serializedAs = serdeProxy
Undocumented in source.

Functions

asdfSerializer
auto asdfSerializer(size_t initialLength)

Create ASDF serialization back-end

deserialize
V deserialize(Asdf data)
V deserialize(char[] str)

Deserialization function

deserializeScopedString
SerdeException deserializeScopedString(Asdf data, V value)

Deserializes scoped string value. This function does not allocate a new string and just make a raw cast of ASDF data.

deserializeValue
SerdeException deserializeValue(Asdf data, T )

Deserialize null value

deserializeValue
SerdeException deserializeValue(Asdf data, T value)

Deserialize boolean value

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize numeric value.

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize enum value

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserializes string value. This function allocates new string.

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize single char

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize array

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize static array

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize string-value associative array

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize enumeration-value associative array

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize associative array with integral type key

deserializeValue
SerdeException deserializeValue(Asdf data, V value)

Deserialize aggregate value

jsonSerializer
auto jsonSerializer(Dg sink)

Creates JSON serialization back-end. Use sep equal to "\t" or " " for pretty formatting.

serializeToAsdf
Asdf serializeToAsdf(V value, size_t initialLength)

ASDF serialization function

serializeToJson
string serializeToJson(V value)

JSON serialization function.

serializeToJsonPretty
string serializeToJsonPretty(V value)

JSON serialization function with pretty formatting.

serializeToJsonPretty
void serializeToJsonPretty(V value, O output)

JSON serialization function with pretty formatting and custom output range.

serializeValue
void serializeValue(S serializer, typeof(null) )

null value serialization

serializeValue
void serializeValue(S serializer, V value, FormatSpec!char fmt)

Number serialization

serializeValue
void serializeValue(S serializer, V value)

Boolean serialization

serializeValue
void serializeValue(S serializer, V value)

Char serialization

serializeValue
void serializeValue(S serializer, V value)

Enum serialization

serializeValue
void serializeValue(S serializer, char[] value)

String serialization

serializeValue
void serializeValue(S serializer, T[] value)

Array serialization

serializeValue
void serializeValue(S serializer, R value)

Input range serialization

serializeValue
void serializeValue(S serializer, T[string] value)

String-value associative array serialization

serializeValue
void serializeValue(S serializer, V value)

Enumeration-value associative array serialization

serializeValue
void serializeValue(S serializer, V value)

integral typed value associative array serialization

serializeValue
void serializeValue(S serializer, N value)

Nullable type serialization

serializeValue
void serializeValue(S serializer, V value)

Struct and class type serialization

Structs

AsdfSerializer
struct AsdfSerializer

ASDF serialization back-end

Impl
struct Impl
Undocumented in source.
JsonSerializer
struct JsonSerializer(string sep, Dg)

JSON serialization back-end

Meta