Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Reserve

static func Reserve<T>(count: int) -> T[]

Declaring type: CheckedStorage
Module: System.Runtime.CompilerServices
Assembly: System.Runtime.dll
Source file: CompilerServices.rvn

Reserves an array whose slots must be written before they can be read. Negative lengths, allocation limits and uninitialized reads fault.

Parameters

Name Type Description
count Int32

Return value

T[]