ReadBuffer

Buffers a continuous stdio stream into discrete JSON-RPC messages.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun append(chunk: ByteArray)

Appends raw bytes to the internal buffer for subsequent message parsing.

Link copied to clipboard
fun clear()

Clears all buffered data, discarding any partially received messages.

Link copied to clipboard

Reads and deserializes a JSON-RPC message from the input buffer.