getRegion

fun getRegion(elementSize: <Error class: unknown class>, offset: <Error class: unknown class>, nElements: <Error class: unknown class>): <Error class: unknown class>?

Gets a pointer to a region in @bytes.

The region starts at @offset many bytes from the start of the data and contains @n_elements many elements of @element_size size.

Return

the requested region, or null in case of an error

Since

2.70

Parameters

elementSize

a non-zero element size

offset

an offset to the start of the region within the @bytes

nElements

the number of elements in the region