Source
int nextUint16() { var data = new ByteData(2); data.setUint8(0, nextUint8()); data.setUint8(1, nextUint8()); return data.getUint16(0); }
int nextUint16() { var data = new ByteData(2); data.setUint8(0, nextUint8()); data.setUint8(1, nextUint8()); return data.getUint16(0); }