The OpenD Programming Language

ISerializer

Unified serializer interface.

ISerializer can be used in serialize method instead of generic serilizer.

struct S
{
    void serialize(ISerializer serializer) const @safe
    ...
interface ISerializer {}

Members

Functions

annotationWrapperBegin
size_t annotationWrapperBegin()
annotationWrapperEnd
void annotationWrapperEnd(size_t annotationsState, size_t state)
annotationsEnd
size_t annotationsEnd(size_t state)
elemBegin
void elemBegin()
listBegin
size_t listBegin(size_t length)
listEnd
void listEnd(size_t state)
nextTopLevelValue
void nextTopLevelValue()
putAnnotation
void putAnnotation(const(char)[] annotation)
putKey
void putKey(char[] key)
putNull
void putNull(IonTypeCode code)
putStringPart
void putStringPart(const(char)[] value)

Puts string part. The implementation allows to split string unicode points.

putSymbol
void putSymbol(char[] symbol)
putValue
void putValue(ubyte value)
putValue
void putValue(ushort value)
putValue
void putValue(uint value)
putValue
void putValue(byte value)
putValue
void putValue(short value)
putValue
void putValue(int value)
putValue
void putValue(long value)
putValue
void putValue(ulong value)
putValue
void putValue(float value)
putValue
void putValue(double value)
putValue
void putValue(real value)
putValue
void putValue(BigInt!128 value)
putValue
void putValue(Decimal!128 value)
putValue
void putValue(typeof(null) )
putValue
void putValue(bool b)
putValue
void putValue(char[] value)
putValue
void putValue(Clob value)
putValue
void putValue(Blob value)
putValue
void putValue(Timestamp value)
serdeTarget
int serdeTarget()
sexpBegin
size_t sexpBegin(size_t length)
sexpElemBegin
void sexpElemBegin()
sexpEnd
void sexpEnd(size_t state)
stringEnd
void stringEnd(size_t state)
structBegin
size_t structBegin(size_t length)
structEnd
void structEnd(size_t state)

Meta