public int read_int() { long l = this.read_long(false); int i = (int)l; if (l != i) { throw new OtpErlangDecodeException("Value does not fit in int: " + l); } return i; }