- new
fnet.SmallReadUntil
library utility function (#377):
// SmallReadUntil will read one byte at a time until stopByte is found and up to max bytes total.
// Returns what was read (without the stop byte when found), whether the stop byte was found,
// whether an error occurred (eof...).
// Because we read one by one directly (no buffer) this should only be used for short variable length
// preamble type read.
func SmallReadUntil(r io.Reader, stopByte byte, max int) ([]byte, bool, error)