nextBytes method

  1. @override
Uint8List nextBytes(
  1. int count
)
override

This method iterates through a list of bytes to return the next set of count bytes

Implementation

@override

/// This method iterates through a list of bytes to return the next set of [count] bytes
Uint8List nextBytes(int count) {
  final list = Uint8List(count);

  for (var i = 0; i < list.length; i++) {
    list[i] = nextUint8();
  }

  return list;
}