nextBytes method

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

Get a list of bytes of arbitrary length.

Implementation

@override
Uint8List nextBytes(int count) {
  var bytes = Uint8List(count);
  for (var i = 0; i < count; i++) {
    bytes[i] = nextUint8();
  }
  return bytes;
}