public int readInt() { if (bb.remaining() >= 4) { deficit -= 32; return(((bb.get() & 0xff) << 24) | ((bb.get() & 0xff) << 16) | ((bb.get() & 0xff) << 8) | (bb.get() & 0xff)); } else { return(readIntSafe()); } }