BASS.NET API for the Un4seen BASS Audio LibraryUtilsIntAsObject 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:

public static Object IntAsObject(
	IntPtr ptr,
	Type structureType


Type: SystemIntPtr
The pointer which represents the address of the structured object.
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