BASS.NET API for the Un4seen BASS Audio Library

UtilsIntAsObject Method

BASS.NET API for the Un4seen BASS Audio Library
Translates an IntPtr into a .NET managed object of a given Type.

Sometime BASS returns a pointer which actually represents a memory block containing a structured object. This method does this translation for you and returns the actual object.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public static Object IntAsObject(
	IntPtr ptr,
	Type structureType
)

Parameters

ptr
Type: SystemIntPtr
The pointer which represents the address of the structured object.
structureType
Type: SystemType
The Type of object to be created. This type object must represent a formatted class or structure.

Return Value

Type: Object
The managed object of the specified type.
See Also

Reference