Method CreateDisjointedPayloadBufferFromExistingPayloads
CreateDisjointedPayloadBufferFromExistingPayloads(ref FixedList512Bytes<PayloadHandle>)
Creates a new Disjointed buffer that's composed of preallocated Payloads, instead of allocating new ones.
Declaration
public PayloadHandle CreateDisjointedPayloadBufferFromExistingPayloads(ref FixedList512Bytes<PayloadHandle> payloadHandles)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
payloadHandles | Set a Payload |
Returns
Type | Description |
---|---|
Payload |
If successful, a valid Payload |
Remarks
See Allocate
Use this method to group a set of Payload buffers that have already been allocated into a single Disjointed buffer.
In this case, only the "head" payload needs to be allocated, which is then filled with the specified Payload
Disjointed buffers created this way should be treated exactly the same as those allocated up front; the individual Payloads
are now part of the whole buffer and should only be used for immediate reading/writing of data. Likewise, calling
Release
NOTE: The Payload
CreateDisjointedPayloadBufferFromExistingPayloads(ref FixedList4096Bytes<PayloadHandle>)
Creates a new Disjointed buffer that's composed of preallocated Payloads, instead of allocating new ones.
Declaration
public PayloadHandle CreateDisjointedPayloadBufferFromExistingPayloads(ref FixedList4096Bytes<PayloadHandle> payloadHandles)
Parameters
Type | Name | Description |
---|---|---|
Fixed |
payloadHandles | Set a Payload |
Returns
Type | Description |
---|---|
Payload |
If successful, a valid Payload |
Remarks
CreateDisjointedPayloadBufferFromExistingPayloads(ref NativeList<PayloadHandle>)
Creates a new Disjointed buffer that's composed of preallocated Payloads, instead of allocating new ones.
Declaration
public PayloadHandle CreateDisjointedPayloadBufferFromExistingPayloads(ref NativeList<PayloadHandle> payloadHandles)
Parameters
Type | Name | Description |
---|---|---|
Native |
payloadHandles | Set a Payload |
Returns
Type | Description |
---|---|
Payload |
If successful, a valid Payload |