docs.unity.cn
    Show / Hide Table of Contents

    Method GetUnsafeReadOnlyPtrAndLength

    GetUnsafeReadOnlyPtrAndLength(Int32, out Int32)

    The read-only unsafe pointer and length for the buffer at the given index in the chunk

    Declaration
    public void *GetUnsafeReadOnlyPtrAndLength(int index, out int length)
    Parameters
    Type Name Description
    Int32 index

    The array index of the buffer to query

    Int32 length

    The buffer's length will be written here

    Returns
    Type Description
    Void*

    The base pointer for the buffer at array index index

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if index is out of range

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023