Add Bytes to Bytes array

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
 
D

Dylan Parry

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top