Function growBuffer

  • Internal

    Grows a buffer if it isn't large enough

    Type Parameters

    • T extends ArrayBufferLike | ArrayBufferView<ArrayBufferLike>

    Parameters

    • buffer: T
    • newByteLength: number

    Returns T

    The original buffer if resized successfully, or a newly created buffer Not for external use!