Skip to content

format

typescript
MemoryStream.EnsureCapacity(size)

class: MemoryStream

description

Expands the capacity of the memory stream.

The capacity will be automatically expanded by doubling the current capacity until it is greater than or equal to the specified capacity, instead of using the specified capacity directly.

parameter

param_nametypedescription
sizenumberThe size to expand the capacity to.

reture

typedescription
void

code example