Method RetrieveDisjointedPayloadBuffer
RetrieveDisjointedPayloadBuffer(PayloadHandle, int, out NativeArray<byte>)
Retrieves a NativeArray to safely access an individual Payload that's part of a Disjointed buffer.
Declaration
public bool RetrieveDisjointedPayloadBuffer(PayloadHandle handle, int payloadBufferIndex, out NativeArray<byte> payloadBuffer)
Parameters
Type | Name | Description |
---|---|---|
Payload |
handle | A Payload |
int | payloadBufferIndex | Index of the Payload, referenced by the Disjointed buffer, to retrieve. |
Native |
payloadBuffer | NativeArray that allows safe access to the allocated Payload buffer. |
Returns
Type | Description |
---|---|
bool | True if successfully accessed Payload buffer. |
Remarks
RetrieveDisjointedPayloadBuffer(PayloadHandle, int, bool, out NativeArray<byte>)
Retrieves a NativeArray to safely access an individual Payload that's part of a Disjointed buffer.
Declaration
public bool RetrieveDisjointedPayloadBuffer(PayloadHandle handle, int payloadBufferIndex, bool readWriteAccess, out NativeArray<byte> payloadBuffer)
Parameters
Type | Name | Description |
---|---|---|
Payload |
handle | A Payload |
int | payloadBufferIndex | Index of the Payload, referenced by the Disjointed buffer, to retrieve. |
bool | readWriteAccess | True to allow write-access to the returned NativeArray, otherwise it's read-only. |
Native |
payloadBuffer | NativeArray that allows safe access to the allocated Payload buffer. |
Returns
Type | Description |
---|---|
bool | True if successfully accessed Payload buffer. |
Remarks
See Allocate
Use this method to safely retrieve one of the Payload buffers, that's referenced by a Disjointed buffer, for
reading or writing payload data, similar to Retrieve
The Payload buffer to retrieve is specified by an index of the Payload
As with Retrieve