docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryCopyFrom

    TryCopyFrom(T*, int)

    Try to copy the data from a buffer in this list.

    Declaration
    public bool TryCopyFrom(T* srcPtr, int count)
    Parameters
    Type Name Description
    T* srcPtr

    The pointer of the source memory to copy.

    int count

    The number of item to copy from the source buffer.

    Returns
    Type Description
    bool
    • true
      when the copy was performed.
    • false
      when the copy was aborted because the capacity of this list is too small.
    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)