Table of Contents

Interface ILinoProtocol

Namespace
Foundation.Data.Doublets.Cli.Protocol
Assembly
Foundation.Data.Doublets.Cli.dll

Reads and writes whole LiNo documents on a byte stream. Both TextLinoProtocol and BinaryLinoProtocol implement it, so code written against it switches protocol by swapping one value.

public interface ILinoProtocol

Methods

Reads one message; null when the stream ended cleanly.

IReadOnlyList<Link<string>>? ReadDocument(PacketReader input)

Parameters

input PacketReader

Returns

IReadOnlyList<Link<string>>

Writes one message carrying document.

void WriteDocument(Stream output, IReadOnlyList<Link<string>> document)

Parameters

output Stream
document IReadOnlyList<Link<string>>