Buffers a continuous stdio stream into discrete JSON-RPC messages.
Appends raw bytes to the internal buffer for subsequent message parsing.
Clears all buffered data, discarding any partially received messages.
Reads and deserializes a JSON-RPC message from the input buffer.