Click or drag to resize

ReadOnlyMemoryT(Void*, Int32) Constructor

Creates a memory over native memory. The caller guarantees that the memory stays valid and fixed for the whole lifetime of the instance and of any copy of it.

Namespace: System
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public ReadOnlyMemory(
	void* ptr,
	int length
)

Parameters

ptr  Void*
The pointer to the first element of the native memory
length  Int32
The number of elements in the native memory
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionlength is negative
See Also