You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The network Reader/Writer could simplify the protocol code by taking care of ensuring the network byte order, handling the currently explicit pointer incrementing remaining[4..] which is all over the place. And it could also help with #264 by making it easier to handle out of range errors without having to explicitly check them everywhere.
In the future this could allow easily integrating something like varints (ints of variable length).
And as a far-future bonus optimization, we might be able to save an extra copy of the data on receive.
The text was updated successfully, but these errors were encountered:
The network Reader/Writer could simplify the protocol code by taking care of ensuring the network byte order, handling the currently explicit pointer incrementing
remaining[4..]
which is all over the place. And it could also help with #264 by making it easier to handle out of range errors without having to explicitly check them everywhere.In the future this could allow easily integrating something like varints (ints of variable length).
And as a far-future bonus optimization, we might be able to save an extra copy of the data on receive.
The text was updated successfully, but these errors were encountered: