Table of Contents

Struct MessageFormat

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

The wire format a message arrived in, so a reply can use the same one.

public readonly record struct MessageFormat : IEquatable<MessageFormat>
Implements
Inherited Members

Constructors

The wire format a message arrived in, so a reply can use the same one.

public MessageFormat(bool IsBinary, BinaryLinoOptions Options = default)

Parameters

IsBinary bool

False for TextLinoProtocol.

Options BinaryLinoOptions

The binary options read from the packet header.

Properties

IsBinary

False for TextLinoProtocol.

public bool IsBinary { get; init; }

Property Value

bool

Options

The binary options read from the packet header.

public BinaryLinoOptions Options { get; init; }

Property Value

BinaryLinoOptions

Text

The text format.

public static MessageFormat Text { get; }

Property Value

MessageFormat

Methods

The binary format with options.

public static MessageFormat Binary(BinaryLinoOptions options)

Parameters

options BinaryLinoOptions

Returns

MessageFormat

Protocol(ProtocolLimits)

A protocol that writes messages in this format.

public ILinoProtocol Protocol(ProtocolLimits limits)

Parameters

limits ProtocolLimits

Returns

ILinoProtocol