Backend

Message builder and parser

Members

Enums

ParseResult
enum ParseResult

Functions

aduLength
size_t aduLength(size_t dataBytes)
Undocumented in source.
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[] buffer, ulong dev, ubyte fnc, Args args)

Full build message for sending

completeMessage
void completeMessage(void[] buf, size_t idx)

finalize message

connection
Connection connection()

Returns abstract connection

minMsgLength
size_t minMsgLength()
Undocumented in source. Be warned that the author may not have intended to support it.
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

sr
SpecRules sr()
Undocumented in source.
startMessage
void startMessage(void[] buf, size_t idx, ulong dev, ubyte func)

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