read method

  1. @override
int read()
override

Read a single byte from the input.

Example:

final input = DefaultInput.fromHex('0x010203');
print(input.read()); // 1
print(input.read()); // 2
print(input.read()); // 3

Implementation

@override
int read() {
  return _buffer[offset++];
}