readShort method

int readShort()

Implementation

int readShort() {
  assert(offset + Int16List.bytesPerElement <= byteLength);
  final res = buf.getInt16(offset, Endian.little);
  offset += Int16List.bytesPerElement;
  return res;
}