Table of Contents

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 sbyte

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.

Length uint

The 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

uint

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; }

Property Value

sbyte