List<int> readBytes(int num) { List<int> lst = []; for (int i = 0; i < num; i++) { lst.add(readUnsignedByte()); } return lst; }