Struct FragmentationPipelineStage
Pipeline stage that can be used to fragment large packets into MTU-sized chunks. Use this stage when defining pipelines that need to send packets larger than ~1400 bytes.
Inherited Members
Namespace: Unity.Networking.Transport
Syntax
[BurstCompile]
public struct FragmentationPipelineStage : 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 NetworkSettings.
Declaration
public readonly int StaticSize { get; }
Property Value
Type | Description |
---|---|
Int32 | Size in bytes. |
Implements
Methods
StaticInitialize(Byte*, Int32, NetworkSettings)
Initialize the static storage for the pipeline from the settings. More importantly, this method is responsible for providing the NetworkPipelineStage structure, which contains function pointers for most of the pipeline stage functionality.
Declaration
public NetworkPipelineStage StaticInitialize(byte *staticInstanceBuffer, int staticInstanceBufferLength, NetworkSettings settings)
Parameters
Type | Name | Description |
---|---|---|
Byte* | staticInstanceBuffer | Static storage pointer. |
Int32 | staticInstanceBufferLength | Static storage length. |
NetworkSettings | settings | Settings provided to the driver. |
Returns
Type | Description |
---|---|
NetworkPipelineStage | Runtime information for a pipeline instance. |