Java Integer Create toInt(byte[] res)

Here you can find the source of toInt(byte[] res)

Description

to Int

License

Apache License

Declaration

public static int toInt(byte[] res) 

Method Source Code

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

public class Main {

    public static int toInt(byte[] res) {
        return (res[0] & 0xff) | ((res[1] << 8) & 0xff00) | ((res[2] << 24) >>> 8) | (res[3] << 24);
    }/*from   ww  w  .ja  v a 2  s  . c om*/
}

Related

  1. toInt(byte[] in)
  2. toInt(byte[] input)
  3. toInt(byte[] key)
  4. toInt(byte[] n)
  5. toInt(byte[] readBuffer, int o)
  6. toInt(byte[] si)
  7. toInt(byte[] src)
  8. toInt(byte[] src)
  9. toInt(byte[] src, int srcPos)