Skip to content

McpNdjson.Buffer

Namespace: Vercel.AI.Mcp

public sealed class McpNdjson.Buffer

Buffer that reassembles newline-delimited messages split across chunks.

Inheritance: object

View source

public void Append(byte[] chunk)

Appends the next stdout chunk.

Parameters

Name Type Description
chunk byte[]

View source

public void Clear()

Drops buffered bytes.

View source

public string? ReadLine()

Returns the next line without its newline, or null when the line is incomplete.

Returns: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product