Backend

Message builder and parser

Members

Enums

ParseResult
enum ParseResult

Functions

aduLength
size_t aduLength(size_t dataBytes)
append
void append(void[] buf, size_t idx, T val)
appendBytes
void appendBytes(void[] buf, size_t idx, const(void)[] )

append data to message buffer

buildMessage
void[] buildMessage(void[] buf, ulong dev, ubyte fnc, ulong stamp, Args args)

Full build message for sending

finalizeMessage
void finalizeMessage(void[] buf, size_t idx)
packT
const(void)[] packT(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
parseMessage
ParseResult parseMessage(const(void)[] data, Message result)

Read data to temp message buffer

recursiveAppend
void recursiveAppend(void[] buf, size_t idx, Args args)
sr
SpecRules sr()
Undocumented in source.
startMessage
void startMessage(void[] buf, size_t idx, ulong dev, ubyte fnc, ulong stamp)

start building message

unpackT
T unpackT(const(void)[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
unpackTT
T unpackTT(T value)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta