Android Byte Array to Int Convert getIntLE2(byte[] b, int offset)

Here you can find the source of getIntLE2(byte[] b, int offset)

Description

get Int LE

Declaration

public static int getIntLE2(byte[] b, int offset) 

Method Source Code

//package com.java2s;

public class Main {

    public static int getIntLE2(byte[] b, int offset) {
        return ((b[offset + 1] & 0xff) << 8) | (b[offset] & 0xff);
    }// ww  w. ja v a 2s.c  o  m
}

Related

  1. getIntFrom2ByteArray(final byte[] input)
  2. getIntFromByte(final byte bite)
  3. getIntFromByte(final byte bite)
  4. getIntFromByteArray(final byte[] byteArr)
  5. getIntFromByteArray(final byte[] bytes)
  6. getInts(int[] toInts, byte[] fromBytes)
  7. getInts(int[] toInts, byte[] fromBytes, int fromOffset)
  8. getUIntByByte(byte data)
  9. getUIntByByteArray(byte[] data)