McpNdjson.Buffer
Namespace: Vercel.AI.Mcp
public sealed class McpNdjson.BufferBuffer that reassembles newline-delimited messages split across chunks.
Inheritance: object
Methods
Section titled “Methods”Append(byte[])
Section titled “Append(byte[])”public void Append(byte[] chunk)Appends the next stdout chunk.
Parameters
| Name | Type | Description |
|---|---|---|
chunk |
byte[] |
Clear()
Section titled “Clear()”public void Clear()Drops buffered bytes.
ReadLine()
Section titled “ReadLine()”public string? ReadLine()Returns the next line without its newline, or null when the line is incomplete.
Returns: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product