Table of Contents

Class RecordHeader

Namespace
Iot.Device.Ndef
Assembly
Iot.Device.Ndef.dll

Record header of NDEF message

public class RecordHeader
Inheritance
RecordHeader

Constructors

RecordHeader()

Create a full empty Record Header

public RecordHeader()

RecordHeader(SpanByte)

Create a header from a span of bytes

public RecordHeader(SpanByte recordToDecode)

Parameters

recordToDecode SpanByte

A span of bytes

Properties

IdLength

Id Length

public byte IdLength { get; }

Property Value

byte

IsComposedMessage

True if it's a composed message

public bool IsComposedMessage { get; }

Property Value

bool

IsFirstMessage

True if it's the first NDEF Record in the Message

public bool IsFirstMessage { get; }

Property Value

bool

IsLastMessage

True if it's the last NDEF Record in the Message

public bool IsLastMessage { get; }

Property Value

bool

Length

The Length of the Header

public int Length { get; }

Property Value

int

MessageFlag

Message flag

public MessageFlag MessageFlag { get; set; }

Property Value

MessageFlag

PayloadId

Payload Id

public byte[]? PayloadId { get; set; }

Property Value

byte[]

PayloadLength

Payload length

public uint PayloadLength { get; set; }

Property Value

uint

PayloadType

Payload Type

public byte[] PayloadType { get; set; }

Property Value

byte[]

PayloadTypeLength

Length of the Payload Type

public byte PayloadTypeLength { get; }

Property Value

byte

TypeNameFormat

Type of name format

public TypeNameFormat TypeNameFormat { get; set; }

Property Value

TypeNameFormat

Methods

Serialize(SpanByte)

Serialize the header

public void Serialize(SpanByte header)

Parameters

header SpanByte

Serialized byte span