docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnsafeSpanExtensions

    Inheritance
    object
    UnsafeSpanExtensions
    Namespace: Infinity.Collections
    Assembly: solution.dll
    Syntax
    public static class UnsafeSpanExtensions

    Methods

    AsUnsafeSpan<T>(NativeArray<T>)

    Declaration
    public static UnsafeSpan<T> AsUnsafeSpan<T>(this NativeArray<T> array) where T : unmanaged
    Parameters
    Type Name Description
    NativeArray<T> array
    Returns
    Type Description
    UnsafeSpan<T>
    Type Parameters
    Name Description
    T

    CopyFrom<T>(NativeArray<T>, UnsafeSpan<T>)

    Declaration
    public static NativeArray<T> CopyFrom<T>(this NativeArray<T> array, UnsafeSpan<T> span) where T : unmanaged
    Parameters
    Type Name Description
    NativeArray<T> array
    UnsafeSpan<T> span
    Returns
    Type Description
    NativeArray<T>
    Type Parameters
    Name Description
    T
    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)