Documentation

Unity Engine

Unity Engine

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

Creates a new NativeSlice<T> from existing data.
Read time 1 minuteLast updated a month ago

Definition

public static NativeSlice<T> ConvertExistingDataToNativeSlice<T>(void* dataPointer, int stride, int length) where T : struct

Parameters

dataPointer

Memory pointer to the data.

stride

Stride in bytes.

length

Number of elements in the data set.

Returns

Type

Description

NativeSlice<T>The created NativeSlice.