Struct MessageFormat
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
MessageFormat(bool, BinaryLinoOptions)
The wire format a message arrived in, so a reply can use the same one.
public MessageFormat(bool IsBinary, BinaryLinoOptions Options = default)
Parameters
IsBinaryboolFalse for TextLinoProtocol.
OptionsBinaryLinoOptionsThe binary options read from the packet header.
Properties
IsBinary
False for TextLinoProtocol.
public bool IsBinary { get; init; }
Property Value
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
Methods
Binary(BinaryLinoOptions)
The binary format with options.
public static MessageFormat Binary(BinaryLinoOptions options)
Parameters
optionsBinaryLinoOptions
Returns
Protocol(ProtocolLimits)
A protocol that writes messages in this format.
public ILinoProtocol Protocol(ProtocolLimits limits)
Parameters
limitsProtocolLimits