Java Byte Array Convert To Bytes8ToLong(byte abyte0[], int offset)

Here you can find the source of Bytes8ToLong(byte abyte0[], int offset)

Description

Bytes To Long

License

Apache License

Declaration

public static long Bytes8ToLong(byte abyte0[], int offset) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static long Bytes8ToLong(byte abyte0[], int offset) {
        return (255L & (long) abyte0[offset]) << 56 | (255L & (long) abyte0[offset + 1]) << 48
                | (255L & (long) abyte0[offset + 2]) << 40 | (255L & (long) abyte0[offset + 3]) << 32
                | (255L & (long) abyte0[offset + 4]) << 24 | (255L & (long) abyte0[offset + 5]) << 16
                | (255L & (long) abyte0[offset + 6]) << 8 | (255L & (long) abyte0[offset + 7]);
    }//from   w w w  .j a  v  a 2  s .co  m
}

Related

  1. bytes2ip(byte[] bytes)
  2. bytes2IPV4(byte[] addr, int offset)
  3. bytes2nibbles(byte[] bytes)
  4. bytes2unique(byte[] daten, int offset)
  5. Bytes4ToInt(byte abyte0[], int offset)
  6. bytes_to_sbuf(byte[] data, int offset, int length, StringBuffer buf)
  7. bytes_to_short(byte[] buf, int offset)
  8. bytes_to_str(byte[] data)
  9. bytesToAlphaNumeric(byte[] number)