public int read_uint() { long l = this.read_long(true); int i = (int)l; if (l != (i & 0xFFFFffffL)) { throw new OtpErlangDecodeException("Value does not fit in uint: " + l); } return i; }