Java Unsigned Int Create toUnsignedInt16(byte[] bytes)

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

Description

to Unsigned Int

License

Apache License

Declaration

public static int toUnsignedInt16(byte[] bytes) 

Method Source Code

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

public class Main {
    public static int toUnsignedInt16(byte[] bytes) {
        return ((bytes[2] & 0xff) << 8) | (bytes[3] & 0xff);
    }//from  w w  w .  j a  v a  2 s.  c  om
}

Related

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