docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ResizeUninitialized

    ResizeUninitialized(int)

    Sets the length of this buffer, increasing the capacity if necessary.

    Declaration
    public void ResizeUninitialized(int length)
    Parameters
    Type Name Description
    int length

    The new length of the buffer.

    Remarks

    If length is less than the current length of the buffer, the length of the buffer is reduced while the capacity remains unchanged.

    Examples
    buffer.ResizeUninitialized(buffer.Length + 10);
    In This Article
    Back to top
    Copyright © 2024 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)