The Payload type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Payload()()()() | Creates an empty payload and does not allocate a byte array. | |
| Payload(array<Byte>[]()[][]) | Creates a new payload with the the given array as data.
A reference to the passed-in array is held, i. e. no
copy is made.
| |
| Payload(array<Byte>[]()[][], Int32, Int32) | Creates a new payload with the the given array as data.
A reference to the passed-in array is held, i. e. no
copy is made.
|
Methods
| Name | Description | |
|---|---|---|
| ByteAt | Returns the byte at the given index. | |
| Clone | Clones this payload by creating a copy of the underlying
byte array.
| |
| CopyTo | Copies the payload data to a byte array.
| |
| Equals | (Overrides Object..::..Equals(Object).) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetData | Returns a reference to the underlying byte array
that holds this payloads data.
| |
| GetHashCode | (Overrides Object..::..GetHashCode()()()().) | |
| GetOffset | Returns the offset in the underlying byte array | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Length | Returns the length of the payload data. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetData(array<Byte>[]()[][]) | Sets this payloads data.
A reference to the passed-in array is held, i. e. no
copy is made.
| |
| SetData(array<Byte>[]()[][], Int32, Int32) | Sets this payloads data.
A reference to the passed-in array is held, i. e. no
copy is made.
| |
| ToByteArray | Allocates a new byte array, copies the payload data into it and returns it. | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| data | the byte array containing the payload data | |
| length | the length of the payload data | |
| offset | the offset within the byte array |