readUint16 method

  1. @protected
Future<int> readUint16()
inherited

Read single 16 bit unsigned integer in big endian.

Implementation

@protected
Future<int> readUint16() async {
  final buffer = await readBytes(2);
  return (buffer[0] << 8) + buffer[1];
}