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)
This adds an
InsertMessage()
method toMessageReader
. It should insert the contents ofwriter
at the current location ofreader
, 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)