0
Boas. How do I add one byte[] to another byte[]?
Byte1.add(byte2);
Giving more code will not help in understanding the problem. But I will explain better.
I have a byte[] called fullbytecoll[] that will store all bytes[] collected.
Then I have a loop that will always give me several byte 'Chunks' [] that I intend to add to the end of fullbytecoll[]. So I need a way to add date to my byte array.
Needs to be array? Arrays cannot be resized. I mean, it’s even possible, but it involves a considerable amount of work and that’s probably not what you’re looking for.
– Jéf Bueno
What is your difficulty? Enter a more complete code, let us know if there are any problems.
– Maniero
I added more information.
– lemario
There really is no way, either switch to the list or reserve enough space for all bytes. The alternative would be to create new arrays as it needs more space, but this is what the
List
does more correctly than most programmers would do manually. This can help a little understand the possible operations of each collection: http://answall.com/q/76316/101– Maniero
I tried to do it by list. and I have listDecomp.Add(Decompressedb); , and at the end of the loop, I intend to go back to byte. How do I do that?
– lemario