Appending to Byte arrays?

PaulR

Active Member
Licensed User
Longtime User
Hi

What is the syntax for appending to arrays of Bytes?

I can use the ArrayCopy from the ByteConverter library to go back and forward between arrays, and access individual byte positions but is there an easier way of appending?

Cheers!
 

PaulR

Active Member
Licensed User
Longtime User
Okay, so they are the same as normal C arrays... thanks.

OutputStream looks perfect for this stuff (which will be why you implemented it) :).
 
Upvote 0

PaulR

Active Member
Licensed User
Longtime User
I think the autocomplete tooltip for OutputStream.WriteBytes is wrong when it says Length as Int has to be the length - 1. My code works when the StartOffset = 0 and Length = Length.

eg a 32 bit Int has a length of 4 bytes and the values StartOffset = 0 and Length = 4 is correct for that.
 
Upvote 0
Top