getUInt16 method

int getUInt16([
  1. Endian endian = Endian.little
])

Returns the positive integer represented by the four bytes Increments the offset value by four The return value will be between 0 and 216 - 1, inclusive.

Implementation

int getUInt16([Endian endian = Endian.little]) {
  final result = buffer.getUint16(offset, endian);
  offset += 2;
  return result;
}