Table of Contents

Struct MsgPackExtensionHeader

Namespace
ShapeShift.MsgPack
Assembly
ShapeShift.MsgPack.dll

Describes a MessagePack extension value that a decoder is positioned at, without reading its payload.

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

Constructors

MsgPackExtensionHeader(sbyte, int)

Describes a MessagePack extension value that a decoder is positioned at, without reading its payload.

public MsgPackExtensionHeader(sbyte TypeCode, int Length)

Parameters

TypeCode sbyte

The extension type code. See MsgPackExtensionCodes for the codes ShapeShift reserves.

Length int

The number of bytes in the extension's payload.

Properties

Length

The number of bytes in the extension's payload.

public int Length { get; init; }

Property Value

int

TypeCode

The extension type code. See MsgPackExtensionCodes for the codes ShapeShift reserves.

public sbyte TypeCode { get; init; }

Property Value

sbyte