docs.unity.cn
    Show / Hide Table of Contents

    Method ResizeUninitialized

    ResizeUninitialized(Int32)

    Increases the buffer capacity and length.

    Declaration
    public void ResizeUninitialized(int length)
    Parameters
    Type Name Description
    Int32 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);
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use