BaseBackend

Basic functionality of Backend

Constructors

this
this(SpecRules s, size_t serviceData, size_t deviceOffset)

Members

Functions

aduLength
size_t aduLength(size_t dataBytes)
Undocumented in source. Be warned that the author may not have intended to support it.
appendBytes
void appendBytes(void[] buf, size_t idx, const(void)[] v)
Undocumented in source. Be warned that the author may not have intended to support it.
appendDF
void appendDF(void[] buf, size_t idx, ulong dev, ubyte fnc)
Undocumented in source. Be warned that the author may not have intended to support it.
check
bool check(const(void)[] data)
Undocumented in source.
endDataSplit
size_t endDataSplit()
Undocumented in source.
finalizeMessage
void finalizeMessage(void[] buf, size_t idx)
Undocumented in source.
getStamp
ulong getStamp(const(void)[] data)
Undocumented in source.
parseMessage
ParseResult parseMessage(const(void)[] data, Message msg)
Undocumented in source. Be warned that the author may not have intended to support it.
sr
SpecRules sr()
Undocumented in source. Be warned that the author may not have intended to support it.
startDataSplit
size_t startDataSplit()
Undocumented in source. Be warned that the author may not have intended to support it.
startMessage
void startMessage(void[] buf, size_t idx, ulong dev, ubyte func, ulong stamp)
Undocumented in source.

Manifest constants

functionTypeSize
enum functionTypeSize;
Undocumented in source.

Variables

devOffset
size_t devOffset;
Undocumented in source.
serviceData
size_t serviceData;
Undocumented in source.
specRules
SpecRules specRules;
Undocumented in source.

Inherited Members

From Backend

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

Full build message for sending

recursiveAppend
void recursiveAppend(void[] buf, size_t idx, Args args)
ParseResult
enum ParseResult
parseMessage
ParseResult parseMessage(const(void)[] data, Message result)

Read data to temp message buffer

aduLength
size_t aduLength(size_t dataBytes)
packT
const(void)[] packT(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
sr
SpecRules sr()
Undocumented in source.
startMessage
void startMessage(void[] buf, size_t idx, ulong dev, ubyte fnc, ulong stamp)

start building message

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

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

Meta