docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkPipelineContext

    Current context of a pipeline stage instance. This type is only useful if implementing a custom INetworkPipelineStage, where it will get passed to the send and receive methods of the pipeline.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public struct NetworkPipelineContext

    Fields

    accumulatedHeaderCapacity

    Total accumulated length of headers in this pipeline.

    Declaration
    public int accumulatedHeaderCapacity
    Field Value
    Type Description
    int

    header

    Writable pipeline stage header.

    Declaration
    public DataStreamWriter header
    Field Value
    Type Description
    DataStreamWriter

    internalProcessBuffer

    Pointer to the internal send/receive buffer. This buffer will be different for the send and receive methods of a pipeline stage instance, and should only be used for that direction since the buffer will not be accessible to the other direction.

    Declaration
    public byte* internalProcessBuffer
    Field Value
    Type Description
    byte*

    internalProcessBufferLength

    Length of the send/receive instance buffer.

    Declaration
    public int internalProcessBufferLength
    Field Value
    Type Description
    int

    internalSharedProcessBuffer

    Pointer to the shared process buffer. This buffer is shared by both the receive and send methods of a pipeline stage instance (but not between stage instances).

    Declaration
    public byte* internalSharedProcessBuffer
    Field Value
    Type Description
    byte*

    internalSharedProcessBufferLength

    Length of the shared instance buffer.

    Declaration
    public int internalSharedProcessBufferLength
    Field Value
    Type Description
    int

    maxMessageSize

    Max message size (Path MTU) for the connection being processed

    Declaration
    public int maxMessageSize
    Field Value
    Type Description
    int

    staticInstanceBuffer

    Pointer to the static instance buffer (shared by all instances of the pipeline stage).

    Declaration
    public byte* staticInstanceBuffer
    Field Value
    Type Description
    byte*

    staticInstanceBufferLength

    Length of the static instance buffer.

    Declaration
    public int staticInstanceBufferLength
    Field Value
    Type Description
    int

    timestamp

    Current timestamp of the pipeline stage execution.

    Declaration
    public long timestamp
    Field Value
    Type Description
    long
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)