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?
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.
If you have a bytes array of 4 bytes then the indices of the array are: 0, 1, 2 and 3. The sentence means that the first byte that will be written is Buffer(0) and the last is Buffer(4 - 1), which is correct.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.