willardf / Hazel-Networking

Hazel Networking is a low level networking library for C# providing connection-oriented, message-based communication via RUDP.
MIT License
385 stars 60 forks source link

Added InsertMessage function to MessageReader #22

Closed cloutier116 closed 3 years ago

cloutier116 commented 3 years ago

This adds an InsertMessage() method to MessageReader. It should insert the contents of writer at the current location of reader, pushing back the rest of the message. This should leave the read head at the end of the inserted message (because doing otherwise would result in immediately reading the inserted message next time you try to read)