Java Unsigned Number Create unsign(byte[] b)

Here you can find the source of unsign(byte[] b)

Description

unsign

License

Apache License

Declaration

public static int[] unsign(byte[] b) 

Method Source Code

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

public class Main {
    public static int[] unsign(byte[] b) {
        int[] v = new int[b.length];
        for (int i = 0; i < b.length; i++) {
            v[i] = unsign(b[i]);//from ww w  . j  a v a  2  s.  c  o  m
        }
        return v;
    }

    public static int unsign(byte b) {
        return b & 0xFF;
    }
}

Related

  1. unsign(byte b)
  2. unsign(byte b)
  3. unsign(byte b)
  4. unsign(byte by)
  5. unsign(byte i)
  6. unsign(final byte b)
  7. unsigned(byte b)
  8. unsigned(byte data)
  9. unsigned(byte value)