docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    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