Add Bytes to Bytes array

  • Thread starter Thread starter Geoffrey
  • Start date Start date
G

Geoffrey

Hello,

I have one array of Bytes , and I want to add some Bytes at the start of the
array.
Is it possible to move all the bytes of the array to right , so I can insert
my Bytes like Bytes[1], ...

Or when I have a lot of Bytes to add, is it possible to add one array to
another array ?
Like this (not allowed) :
Byte[] t1 = new Byte[2];

Byte[] t2 = new Byte[3];

Byte[] t3 = new Byte[5];

t3 = t1 + t2;



Thx
 
Pondering the eternal question of "Hobnobs or Rich Tea?", Geoffrey
finally proclaimed:
Is it possible to move all the bytes of the array to right

If you mean, can you change the size of the array after you have created
it, then the answer is no. You could possibly use something like an
ArrayList though, which allows you to dynamically change the size - and
of course can be converted to an array when you are done messing with
it!
 
Back
Top