The RESET_BUFFER procedure resets a pointer to the session’s local message buffer back to the beginning of the buffer. This causes later PACK_MESSAGE calls to overwrite any data items that were in the message buffer before the RESET_BUFFER call.
Examples
A message to John is written to the local message buffer. It is replaced by a message to Bob by calling RESET_BUFFER. The message is sent on the pipe.