Hi, ive been going nuts.
I hope someone can help me get this awnsers. (some of the awnsers i know already, but i ask anyway, just in case im doing somethign wrong, i find out)
1) How do i create a Byte array
2) How do i append another Byte array to one
3) How do i pick 1 or more bytes from a byte array
4) How do i resize a byte array (e.g. remove the first bytes)
Basicly, we all know the commands LEFT$, MID$, RIGHT$, etc... for string manipulation. And we know arrays. Now all i need is be able todo this on byte level.
But actualy, i also need to be able to read Shorts, and Ints. But if needed i write my own class.
I know off the TBank, but im not sure how you van do point 1 to 4 with a TBank. So thats why i tought i need it as an array.
Basicly, what i want todo is, read the buffer of a SocketStream (entirely) and then append the new data, to the old data, that was saved in the buffer of the class.
As this buffer grows and grows, another method would check for packets and cut them out one by one.
Thanks for helping!
I hope someone can help me get this awnsers. (some of the awnsers i know already, but i ask anyway, just in case im doing somethign wrong, i find out)
1) How do i create a Byte array
2) How do i append another Byte array to one
3) How do i pick 1 or more bytes from a byte array
4) How do i resize a byte array (e.g. remove the first bytes)
Basicly, we all know the commands LEFT$, MID$, RIGHT$, etc... for string manipulation. And we know arrays. Now all i need is be able todo this on byte level.
But actualy, i also need to be able to read Shorts, and Ints. But if needed i write my own class.
I know off the TBank, but im not sure how you van do point 1 to 4 with a TBank. So thats why i tought i need it as an array.
Basicly, what i want todo is, read the buffer of a SocketStream (entirely) and then append the new data, to the old data, that was saved in the buffer of the class.
As this buffer grows and grows, another method would check for packets and cut them out one by one.
Thanks for helping!