readBytes abstract method

Uint8List readBytes(
  1. int length
)

Get the bytes from the current index to the length

Example:

final input = Input.fromHex('0x010203');
print(input.readBytes(3)); // [1, 2, 3]

Implementation

Uint8List readBytes(int length);