Base class representing a payload of a PD command message.
More...
|
| static T[] | SplitData< T > (int size, Func< byte[], T > parseDataFunction, ReadOnlySpan< byte > payloadData) |
| | Splits data into multiple elements of type T based on a specified size.
|
|
| byte[] | BuildData () |
| | Converts the payload into a byte array to be sent over the wire.
|
| ReadOnlySpan< byte > | SecurityControlBlock () |
| | Retrieves the security control block for a specific command data type.
|
| virtual void | CustomMessageUpdate (Span< byte > messageBuffer) |
| | Updates the message data before sending in the specified byte buffer.
|
Base class representing a payload of a PD command message.
Definition at line 10 of file CommandData.cs.
◆ SplitData< T >()
| T[] OSDP.Net.Model.CommandData.CommandData.SplitData< T > |
( |
int | size, |
|
|
Func< byte[], T > | parseDataFunction, |
|
|
ReadOnlySpan< byte > | payloadData ) |
|
inlinestaticprotected |
Splits data into multiple elements of type T based on a specified size.
- Template Parameters
-
| T | The type of elements in the resulting array. |
- Parameters
-
| size | The size of each element in bytes. |
| parseDataFunction | The function used to parse each element of type T from a byte array. |
| payloadData | The payload data to be split. |
- Returns
- An array of elements of type T.
Definition at line 25 of file CommandData.cs.
◆ CommandType
| CommandType OSDP.Net.Model.CommandData.CommandData.CommandType |
|
getabstract |
The documentation for this class was generated from the following file: