Method GetPipelineBuffers
GetPipelineBuffers(NetworkPipeline, NetworkPipelineStageId, NetworkConnection, out NativeArray<byte>, out NativeArray<byte>, out NativeArray<byte>)
Returns the PipelineBuffers for a specific pipeline and stage.
Declaration
public void GetPipelineBuffers(NetworkPipeline pipeline, NetworkPipelineStageId stageId, NetworkConnection connection, out NativeArray<byte> readProcessingBuffer, out NativeArray<byte> writeProcessingBuffer, out NativeArray<byte> sharedBuffer)
Parameters
Type | Name | Description |
---|---|---|
NetworkPipeline | pipeline | Pipeline for which to get the buffers. |
NetworkPipelineStageId | stageId | Pipeline for which to get the buffers. |
NetworkConnection | connection | Connection for which to the buffers. |
NativeArray<byte> | readProcessingBuffer | The buffer used to process read (receive) operations. |
NativeArray<byte> | writeProcessingBuffer | The buffer used to process write (send) operations. |
NativeArray<byte> | sharedBuffer | The buffer containing the internal state of the pipeline stage. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If the the connection is invalid. |