transformers library

Classes

MagicHeaderAndLengthByteTransformer
Assembles messages that start with a fixed sequence of zero or more magic bytes followed by a single byte that indicates the length of the rest of the packet. null is accepted as a wildcard byte. ,... example: 0x25 magic 0x25 0x02 0x01 0x02 [...]
TerminatedStringTransformer
This transformer takes an incoming stream and splits it along the "terminator" marks and returns a String! Great for parsing incoming serial streams that end on \r\n.
TerminatedTransformer
This transformer takes an incoming stream and splits it along the "terminator" marks. Great for parsing incoming serial streams that end on \r\n.

Functions

wildcardFind(dynamic needle, dynamic haystack) int
wildcardFind searches the haystack for a copy of needle. both needle and haystack must be Lists. Needle may contain null's, that position is then treated as a wildcard.