S
Shane Wealti
I have a byte array that I want to convert into a Byte array so that I
can insert the Byte[] object into a Queue collection. I can't find any
information on how to do this and it seems like doing something like
Byte[] BigByteArray = new Byte[bytearray.length];
for(int i = 0; i < bytearray.length; i++)
{
BigByteArray = new Byte(bytearray);
}
is just way too much effort to do something simple like that. How
should I be doing this?
Also, I'd rather just be able to make a Queue like this, but I can't
get it to compile:
Queue<byte[]> receivedPackets = new LinkedList<byte[]>();
Any ideas for what I should do?
can insert the Byte[] object into a Queue collection. I can't find any
information on how to do this and it seems like doing something like
Byte[] BigByteArray = new Byte[bytearray.length];
for(int i = 0; i < bytearray.length; i++)
{
BigByteArray = new Byte(bytearray);
}
is just way too much effort to do something simple like that. How
should I be doing this?
Also, I'd rather just be able to make a Queue like this, but I can't
get it to compile:
Queue<byte[]> receivedPackets = new LinkedList<byte[]>();
Any ideas for what I should do?