Initializes a new instance of the MemoryArray<(Of <(T>)>) class.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public MemoryArray(
	IntPtr baseAddress,
	int length
)
Visual Basic (Declaration)
Public Sub New ( _
	baseAddress As IntPtr, _
	length As Integer _
)
Visual C++
public:
MemoryArray(
	IntPtr baseAddress, 
	int length
)

Parameters

baseAddress
Type: System..::.IntPtr
Address of the memory block.
length
Type: System..::.Int32
Length of the array.

Exceptions

ExceptionCondition
System..::.ArgumentNullException baseAddress is null.
System..::.ArgumentOutOfRangeException length is less or equal zero.
System..::.NotSupportedException The type is not supported.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also