code: public int read_uint() throws OtpErlangDecodeException {
          final long l = this.read_long(true);
          final int i = (int) l;
  
          if (l != (i & 0xFFFFffffL)) {
              throw new OtpErlangDecodeException("Value does not fit in uint: "
                      + l);
          }
  
          return i;
      }
docs: Read an unsigned integer from the stream.
  
  @return the integer value.
  
  @exception OtpErlangDecodeException
  if the next term in the stream cannot be represented as a
  positive integer.