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
TypeCodesbyteThe extension type code. See MsgPackExtensionCodes for the codes ShapeShift reserves.
LengthintThe 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
TypeCode
The extension type code. See MsgPackExtensionCodes for the codes ShapeShift reserves.
public sbyte TypeCode { get; init; }