docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CopyTo

    CopyTo<T>(List<T>, void*, int)

    Extension method to copy elements of a list into a buffer.

    Declaration
    public static void CopyTo<T>(this List<T> list, void* dest, int count) where T : struct
    Parameters
    Type Name Description
    List<T> list

    Input List.

    void* dest

    Destination buffer.

    int count

    Number of elements to copy.

    Type Parameters
    Name Description
    T

    Type of the provided List.

    CopyTo<T>(T[], void*, int)

    Extension method to copy elements of an array into a buffer.

    Declaration
    public static void CopyTo<T>(this T[] list, void* dest, int count) where T : struct
    Parameters
    Type Name Description
    T[] list

    Input List.

    void* dest

    Destination buffer.

    int count

    Number of elements to copy.

    Type Parameters
    Name Description
    T

    Type of the provided array.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)