Method GetPipelineBuffers
GetPipelineBuffers(NetworkPipeline, NetworkPipelineStageId, NetworkConnection, out NativeArray<byte>, out NativeArray<byte>, out NativeArray<byte>)
Get the low-level pipeline buffers for a given pipeline stage on a given pipeline and for a given connection. Can be used to extract information from a pipeline at runtime. Note that this is a low-level API which is not recommended for general use.
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 to get the buffers from. |
NetworkPipelineStageId | stageId | Pipeline stage to get the buffers from. |
NetworkConnection | connection | Connection for which to get the pipeline buffers. |
NativeArray<byte> | readProcessingBuffer | Buffer used by the receive method of the pipeline. |
NativeArray<byte> | writeProcessingBuffer | Buffer used by the send method of the pipeline. |
NativeArray<byte> | sharedBuffer | Buffer used by both receive and send methods of the pipeline. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If the connection is invalid. |