기술 자료

Unity Engine

Download Unity

Unity Engine

Allocate

Allocate space in a buffer.
읽는 시간 1분최근 업데이트: 2달 전

Definition

Allocate<T>()

Allocate space in a buffer.
public ref T Allocate<T>() where T : unmanaged

Returns

Type

Description

TA reference to the allocation.

Remarks

The space is allocated in the buffer which was specified with UnsafeStream.Writer.BeginForEachIndex.

Allocate(int)

Allocate space in a buffer.
public byte* Allocate(int size)

Parameters

size

The number of bytes to allocate.

Returns

Type

Description

byte*The allocation.

Remarks

The space is allocated in the buffer which was specified with UnsafeStream.Writer.BeginForEachIndex.