Reads a List from the backing buffer
length
List readArray(int length) { final res = []..length = length; for (var i = 0; i < length; ++i) { res[i] = read(); } return res; }