readInt16 method

int readInt16()

Implementation

int readInt16() {

    ByteData? data = read(2);

    if(data == null){
      throw 'no more data';
    }

    return data.getInt16(0, Endian.little);
}