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

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

Description

Bytes To Int

License

Apache License

Declaration

public static int Bytes4ToInt(byte abyte0[], int offset) 

Method Source Code

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

public class Main {
    public static int Bytes4ToInt(byte abyte0[], int offset) {
        return (0xff & abyte0[offset]) << 24 | (0xff & abyte0[offset + 1]) << 16 | (0xff & abyte0[offset + 2]) << 8
                | 0xff & abyte0[offset + 3];
    }/*from  w  ww.  j a v  a 2s .c  om*/
}

Related

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