Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Writes an element to a buffer after bounds checking.
Read time 1 minuteLast updated 21 days ago

Definition

public static void WriteArrayElementBoundsChecked<T>(void* destination, int index, T value, int capacity) where T : unmanaged

Parameters

destination

The buffer to write to.

index

The index at which to store the element.

value

T
The value to write.

capacity

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