|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Base class representing a payload an OSDP message. More...
Public Member Functions | |
| 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. | |
Properties | |
| byte | Code [get] |
| Gets the command or reply code byte value that represent the type of data. | |
| virtual bool | IsSecurityInitialization [get] |
| Gets a value indicating whether the security initialization is performed by this payload. | |
Base class representing a payload an OSDP message.
Definition at line 8 of file PayloadData.cs.
|
abstract |
Converts the payload into a byte array to be sent over the wire.
The design decision to put the burden of adding padding on every deriving class is intentional as this method is where byte[] array originates and creating a payload that is ready to be encoded, helps us avoid a few downstream heap operations.
|
inlinevirtual |
Updates the message data before sending in the specified byte buffer.
| messageBuffer | The byte buffer containing the custom message. |
Definition at line 49 of file PayloadData.cs.
|
abstract |
Retrieves the security control block for a specific command data type.
This method is used to retrieve the security control block for a specific command data type. Each command data type has a specific security control block associated with it. The security control block is a collection of bytes that contains security-related information for the command data type.
|
getabstract |
Gets the command or reply code byte value that represent the type of data.
Definition at line 24 of file PayloadData.cs.
|
get |
Gets a value indicating whether the security initialization is performed by this payload.
true if the security initialization is performed; otherwise, false.
Definition at line 32 of file PayloadData.cs.