Constructor Payload
Payload()
Creates an empty payload and does not allocate a byte array.
Declaration
public Payload()
Payload(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.
Declaration
public Payload(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | the data of this payload |
Payload(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.
Declaration
public Payload(byte[] data, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | the data of this payload |
System.Int32 | offset | the offset in the data byte array |
System.Int32 | length | the length of the data |