Class RecordHeader
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
SpanByteA span of bytes
Properties
IdLength
Id Length
public byte IdLength { get; }
Property Value
IsComposedMessage
True if it's a composed message
public bool IsComposedMessage { get; }
Property Value
IsFirstMessage
True if it's the first NDEF Record in the Message
public bool IsFirstMessage { get; }
Property Value
IsLastMessage
True if it's the last NDEF Record in the Message
public bool IsLastMessage { get; }
Property Value
Length
The Length of the Header
public int Length { get; }
Property Value
MessageFlag
Message flag
public MessageFlag MessageFlag { get; set; }
Property Value
PayloadId
Payload Id
public byte[]? PayloadId { get; set; }
Property Value
- byte[]
PayloadLength
Payload length
public uint PayloadLength { get; set; }
Property Value
PayloadType
Payload Type
public byte[] PayloadType { get; set; }
Property Value
- byte[]
PayloadTypeLength
Length of the Payload Type
public byte PayloadTypeLength { get; }
Property Value
TypeNameFormat
Type of name format
public TypeNameFormat TypeNameFormat { get; set; }
Property Value
Methods
Serialize(SpanByte)
Serialize the header
public void Serialize(SpanByte header)
Parameters
header
SpanByteSerialized byte span