|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Represents a single TLV (Tag-Length-Value) entry in the extended device identification response. More...
Public Member Functions | |
| ExtendedIdEntry (ExtendedIdTag tag, string value) | |
| Creates a new instance of ExtendedIdEntry. | |
| ExtendedIdEntry (byte tagByte, string value) | |
| Creates a new instance of ExtendedIdEntry with a raw tag byte. | |
| byte[] | BuildData () |
| Builds the TLV byte array for this entry. | |
| override string | ToString () |
Static Public Member Functions | |
| static ExtendedIdEntry | ParseData (ReadOnlySpan< byte > data, out int bytesConsumed) |
| Parses a TLV entry from the given data span. | |
Properties | |
| ExtendedIdTag | Tag [get] |
| Gets the tag type for this entry. | |
| byte | TagByte [get] |
| Gets the raw tag byte value. | |
| string | Value [get] |
| Gets the UTF-8 string value for this entry. | |
| bool | IsKnown [get] |
| Gets whether this tag is a known/defined tag in the OSDP specification. | |
Represents a single TLV (Tag-Length-Value) entry in the extended device identification response.
Definition at line 10 of file ExtendedIdEntry.cs.
|
inline |
Creates a new instance of ExtendedIdEntry.
| tag | The tag type for this entry. |
| value | The UTF-8 string value for this entry. |
Definition at line 17 of file ExtendedIdEntry.cs.
Referenced by ParseData().
|
inline |
Creates a new instance of ExtendedIdEntry with a raw tag byte.
| tagByte | The raw tag byte value. |
| value | The UTF-8 string value for this entry. |
Definition at line 28 of file ExtendedIdEntry.cs.
|
inline |
Builds the TLV byte array for this entry.
Definition at line 62 of file ExtendedIdEntry.cs.
|
inlinestatic |
Parses a TLV entry from the given data span.
| data | The data span containing the TLV entry. |
| bytesConsumed | The number of bytes consumed from the span. |
Definition at line 82 of file ExtendedIdEntry.cs.
References ExtendedIdEntry().
Referenced by OSDP.Net.Model.ReplyData.ExtendedDeviceIdentification.ParseData().
|
inline |
Definition at line 106 of file ExtendedIdEntry.cs.
References IsKnown.
|
get |
Gets whether this tag is a known/defined tag in the OSDP specification.
Definition at line 56 of file ExtendedIdEntry.cs.
Referenced by ToString().
|
get |
Gets the tag type for this entry.
Definition at line 37 of file ExtendedIdEntry.cs.
Referenced by ExtendedIdEntry().
|
get |
Gets the raw tag byte value.
Definition at line 46 of file ExtendedIdEntry.cs.
Referenced by BuildData(), and ExtendedIdEntry().
|
get |
Gets the UTF-8 string value for this entry.
Definition at line 51 of file ExtendedIdEntry.cs.
Referenced by BuildData(), ExtendedIdEntry(), and ExtendedIdEntry().