Java Byte Array to Int byteToInt(byte[] source, int sourceOffset)

Here you can find the source of byteToInt(byte[] source, int sourceOffset)

Description

byte To Int

License

Open Source License

Declaration

public static final int byteToInt(byte[] source, int sourceOffset) 

Method Source Code

//package com.java2s;

public class Main {
    public static final int byteToInt(byte[] source, int sourceOffset) {
        return ((source[sourceOffset++] & 0xFF) << 24) | ((source[sourceOffset++] & 0xFF) << 16)
                | ((source[sourceOffset++] & 0xFF) << 8) | (source[sourceOffset++] & 0xFF);
    }/* ww  w  . j  a  v a 2 s. co m*/
}

Related

  1. byteToInt(byte[] buf, int off)
  2. byteToInt(byte[] byteArray)
  3. byteToInt(byte[] bytes)
  4. byteToInt(byte[] i_Value)
  5. byteToInt(byte[] num)
  6. byteToInt(byte[] values)
  7. byteToInt(final byte[] b)
  8. byteToInt2(byte[] b)
  9. byteToInteger(byte[] b)