I have a byte[] that I would like to represent as a List where the elements are the plain value of each individual byte, for example if I have
byte[] buf; //filled elsewhere
System.out.println(Arrays.toString(buf)); //prints [97, 99, -100]
I want to end up with an object equivalent to
new ArrayList<Long>{97, 99, -100};
How can I make this object from my original buf?