transformers library

Classes

DisposableStreamTransformer<T, R>
parent abstract class to all transformers adding dispose method.
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.
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.