Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ReadArrayElementBoundsChecked<T>(void*, int, int)

Reads an element from a buffer after bounds checking.
Read time 1 minuteLast updated 10 days ago

Definition

public static T ReadArrayElementBoundsChecked<T>(void* source, int index, int capacity) where T : unmanaged

Parameters

source

The buffer to read from.

index

The index of the element.

capacity

The buffer capacity (in number of elements). Used for the bounds checking.

Returns

Type

Description

TThe element read from the buffer.