byte_array_to_long() публичный статический Метод

public static byte_array_to_long ( byte b, bool unsigned ) : long
b byte
unsigned bool
Результат long
Пример #1
0
        /**
         * Create an Erlang integer from a stream containing an integer encoded in
         * Erlang external format.
         *
         * @param buf
         *                the stream containing the encoded value.
         *
         * @exception OtpErlangDecodeException
         *                    if the buffer does not contain a valid external
         *                    representation of an Erlang integer.
         */
        public OtpErlangLong(OtpInputStream buf)
        {
            byte[] b = buf.read_integer_byte_array();

            try
            {
                val = OtpInputStream.byte_array_to_long(b, false);
            }
            catch (OtpErlangDecodeException)
            {
                bigVal = new BigInteger(b);
            }
        }
Пример #2
0
 public long read_long(bool unsigned)
 {
     byte[] b = read_integer_byte_array();
     return(OtpInputStream.byte_array_to_long(b, unsigned));
 }