The OpenD Programming Language

MsgpackSerializer

Msgpack serialization back-end

struct MsgpackSerializer (
Appender
) {
Appender* buffer;
ScopedBuffer!(char, 128) strBuf;
ScopedBuffer!(uint, 128) lengths;
}

Members

Aliases

listBegin
alias listBegin = aggrBegin!"beginArray"
listEnd
alias listEnd = aggrEnd!"beginArray"
sexpBegin
alias sexpBegin = listBegin
sexpElemBegin
alias sexpElemBegin = elemBegin
sexpEnd
alias sexpEnd = listEnd
structBegin
alias structBegin = aggrBegin!"beginMap"
structEnd
alias structEnd = aggrEnd!"beginMap"

Functions

annotationWrapperBegin
size_t annotationWrapperBegin()
annotationWrapperEnd
void annotationWrapperEnd(size_t , size_t state)
annotationsEnd
auto annotationsEnd(size_t state)
elemBegin
void elemBegin()
nextTopLevelValue
void nextTopLevelValue()
putAnnotation
void putAnnotation(const(char)[] annotation)
putKey
void putKey(char[] key)
putNull
void putNull(IonTypeCode code)
putStringPart
void putStringPart(const(char)[] str)

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

putSymbol
void putSymbol(char[] symbol)
putValue
void putValue(BigInt!size num)
putValue
void putValue(Decimal!size num)
putValue
void putValue(typeof(null) )
putValue
void putValue(bool b)
putValue
void putValue(const(char)[] value)
putValue
void putValue(Clob value)
putValue
void putValue(Blob value)
putValue
void putValue(Timestamp value)
stringBegin
size_t stringBegin()
stringEnd
void stringEnd(size_t state)

Variables

serdeTarget
int serdeTarget;

Mutable value used to choose format specidied or user-defined serialization specializations

Meta