Struct NullPipelineStage
A pipeline stage that does nothing. This can be useful to create different "channels" of communication for different types of messages, even when these messages do not otherwise require any other guarantees provided by other pipeline stages.
Implements
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
[BurstCompile]
public struct NullPipelineStage : INetworkPipelineStage
Properties
StaticSize
Amount of data that the pipeline stage requires in "static" storage (storage shared by
all instances of the pipeline stage). For example, this is often used to store
configuration parameters obtained through Network
Declaration
public int StaticSize { get; }
Property Value
Type | Description |
---|---|
int | Size in bytes. |
Methods
StaticInitialize(byte*, int, NetworkSettings)
Initialize the static storage for the pipeline from the settings. More importantly, this
method is responsible for providing the Network
Declaration
public NetworkPipelineStage StaticInitialize(byte* staticInstanceBuffer, int staticInstanceBufferLength, NetworkSettings netParams)
Parameters
Type | Name | Description |
---|---|---|
byte* | staticInstanceBuffer | Static storage pointer. |
int | staticInstanceBufferLength | Static storage length. |
Network |
netParams |
Returns
Type | Description |
---|---|
Network |
Runtime information for a pipeline instance. |