docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport
    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 NetworkSettings.

    Declaration
    public readonly int StaticSize { get; }
    Property Value
    Type Description
    Int32

    Size in bytes.

    Implements
    INetworkPipelineStage.StaticSize

    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 netParams)
    Parameters
    Type Name Description
    Byte* staticInstanceBuffer

    Static storage pointer.

    Int32 staticInstanceBufferLength

    Static storage length.

    NetworkSettings netParams
    Returns
    Type Description
    NetworkPipelineStage

    Runtime information for a pipeline instance.

    Implements
    INetworkPipelineStage.StaticInitialize(Byte*, Int32, NetworkSettings)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023