Skip to content

Instantly share code, notes, and snippets.

@crised
Last active August 29, 2015 14:02
Show Gist options
  • Save crised/32fdac5b49daab6f6b9b to your computer and use it in GitHub Desktop.
Save crised/32fdac5b49daab6f6b9b to your computer and use it in GitHub Desktop.
private byte[] toPrimitives(Byte[] oBytes){
byte[] bytes;
int i =0;
for(Byte b : oBytes){
bytes[i] = b;
}
return bytes;
}
@freeone3000
Copy link

private byte[] toPrimitives(Byte[] oBytes){

    byte[] bytes = new byte[oBytes.length];
    for(int i = 0; i < oBytes.length; i++){
        bytes[i] = oBytes[i];
    }
    return bytes;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment