Length based parser.
Passes data through as it comes in. This could be in single bytes or blocks of bytes.
single terminator string for example "\n"
Splits incoming data at each terminator without returning terminator.
array of strings
Splits incoming data based on a list of terminators and keeps the terminator on the data.
Splits the incoming data by using the first byte of the incoming data as the length field. The length does not include the first byte. For example
02 00 01 03 01 02 03
holds 2 messages
Message 1: 00 01
Message 2: 01 02 03