return ((data[idx++]&0xff) << 8) | (data[idx]&0xff);
}
+ // TODO: DIRTY HACKS!!!
+ public final int readU4(){
+ int idx = pos;
+ pos += 4;
+ byte[] data = this.data;
+
+ return ((data[idx++]&0xff) <<24) | ((data[idx++]&0xff) << 16) | ((data[idx++]&0xff) << 8) | (data[idx]&0xff);
+ }
+
public final int readI2() {
int idx = pos;
pos += 2;