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
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: ObjectThe managed object of the specified type.
See Also