Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Understanding Byte Array
#7
Obsidian Wrote:So you fill an array with the data being sent, and then the server sorts it back out in the order that it was sent in, but how does it know when to transfer from one value to the next, e.g., from data1 to data2 on the map editor, or whatever?

each value has a set number of bytes, for example, if there are integers, they each take 2 bytes(I think?). The client knows this, and reads the first 2 bytes as the first integer and the 2nd to bytes as the 2nd integer.

with Verrs system, once it reads the data it is expecting, it removes it from the byte array(I think?) so the next operation doesn't even have to know what came before it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)