Java Unsigned Int Create toUnsignedInt32LittleEndian(byte[] bytes)

Here you can find the source of toUnsignedInt32LittleEndian(byte[] bytes)

Description

to Unsigned Int Little Endian

License

Apache License

Declaration

public static int toUnsignedInt32LittleEndian(byte[] bytes) 

Method Source Code

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

public class Main {
    public static int toUnsignedInt32LittleEndian(byte[] bytes) {
        return ((bytes[3] & 0xff) << 24) | ((bytes[2] & 0xff) << 16) | ((bytes[1] & 0xff) << 8) | (bytes[0] & 0xff);
    }/*from  w  ww . j a  v  a  2  s.c o  m*/
}

Related

  1. toUnsignedInt(int value)
  2. toUnsignedInt(int value)
  3. toUnsignedInt(long value)
  4. toUnsignedInt(String string)
  5. toUnsignedInt16(byte[] bytes)
  6. toUnsignedIntArray(byte[] val)
  7. toUnsignedIntBigEndien(byte[] bytes)