readNullTerminatedList method
Reads a null terminated list of ints from the buffer. Returns the list of ints from the buffer, without the terminating zero
Implementation
List<int> readNullTerminatedList() {
var s = <int>[];
while (_list[_readPos] != 0) {
s.add(_list[_readPos]);
_readPos++;
}
_readPos++;
return s;
}