writeCurrentMessageContext

Writes the current context values to the given buffer