Java Long Number Create toLong(byte[] src, int srcPos)

Here you can find the source of toLong(byte[] src, int srcPos)

Description

to Long

License

Open Source License

Declaration

public static long toLong(byte[] src, int srcPos) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static long toLong(byte[] src, int srcPos) {
        long qword = 0;
        for (int i = 0; i < 8; i++) {
            qword = (qword << 8) + (src[i + srcPos] & 0xFF);
        }/*w  w w. j a v  a  2  s.c  o  m*/
        return qword;
    }

    public static long toLong(byte[] src) {
        return toLong(src, 0);
    }
}

Related

  1. toLong(byte[] memory, int index)
  2. toLong(byte[] n)
  3. toLong(byte[] readBuffer, int o)
  4. toLong(byte[] si, boolean isReverseOrder)
  5. toLong(byte[] src)
  6. toLong(byte[] v)
  7. toLong(byte[] value)
  8. toLong(byte[] value)
  9. toLong(byte[] vint)