Struct ExtensionHeader
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
Describes a msgpack extension. This precedes the extension payload itself in the msgpack encoded format.
public record struct ExtensionHeader : IEquatable<ExtensionHeader>
- Implements
- Inherited Members
Constructors
ExtensionHeader(sbyte, uint)
Describes a msgpack extension. This precedes the extension payload itself in the msgpack encoded format.
public ExtensionHeader(sbyte TypeCode, uint Length)
Parameters
TypeCode
sbyteA value that uniquely identifies the extension type. Negative values are reserved for official msgpack extensions. See ReservedMessagePackExtensionTypeCode for values already assigned from the reserved range.
Length
uintThe length of the extension's data payload.
Properties
Length
The length of the extension's data payload.
public uint Length { readonly get; set; }
Property Value
TypeCode
A value that uniquely identifies the extension type. Negative values are reserved for official msgpack extensions. See ReservedMessagePackExtensionTypeCode for values already assigned from the reserved range.
public sbyte TypeCode { readonly get; set; }