readInt32 method

int readInt32()

Implementation

int readInt32() {

    ByteData? data = read(4);

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

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