Java Unsigned Number Create unsignedByteToIntArray(byte[] bytes)

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

Description

unsigned Byte To Int Array

License

Open Source License

Declaration

public static int[] unsignedByteToIntArray(byte[] bytes) 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

public class Main {
    public static int[] unsignedByteToIntArray(byte[] bytes) {
        int[] ints = new int[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
            ints[i] = unsignedByteToInt(bytes[i]);
        }// www. j a  va  2 s  .  c  o  m
        return ints;
    }

    private static int unsignedByteToInt(byte b) {
        return b & 0xff;
    }
}

Related

  1. unsignedBytesToInts(Byte[] bytes)
  2. unsignedByteToInt(byte b)
  3. unsignedByteToInt(byte b)
  4. unsignedByteToInt(byte in)
  5. unsignedByteToInt(final byte b)
  6. unsignedByteToLong(final byte b)
  7. unsignedByteToString(int i)
  8. unsignedByteValue(byte[] data, int offset)
  9. unsignedByteValue(final byte input)