Xeno-rat
Loading...
Searching...
No Matches
NAudio.Wave.WaveFormatCustomMarshaler Class Referencesealed

Custom marshaller for WaveFormat structures. More...

Inheritance diagram for NAudio.Wave.WaveFormatCustomMarshaler:
Collaboration diagram for NAudio.Wave.WaveFormatCustomMarshaler:

Public Member Functions

void CleanUpManagedData (object ManagedObj)
 Cleans up managed data for the specified managed object.
 
void CleanUpNativeData (IntPtr pNativeData)
 Frees the memory allocated for the native data pointed to by the specified pointer.
 
int GetNativeDataSize ()
 Gets the size of the native data.
 
IntPtr MarshalManagedToNative (object ManagedObj)
 Marshals a managed object to its native representation.
 
object MarshalNativeToManaged (IntPtr pNativeData)
 Marshals a native pointer to a managed WaveFormat object.
 

Static Public Member Functions

static ICustomMarshaler GetInstance (string cookie)
 Returns an instance of the WaveFormatCustomMarshaler.
 

Static Private Attributes

static WaveFormatCustomMarshaler marshaler = null
 

Detailed Description

Custom marshaller for WaveFormat structures.

Member Function Documentation

◆ CleanUpManagedData()

void NAudio.Wave.WaveFormatCustomMarshaler.CleanUpManagedData ( object ManagedObj)
inline

Cleans up managed data for the specified managed object.

Parameters
ManagedObjThe managed object for which the data needs to be cleaned up.

This method performs cleanup operations for the managed data associated with the specified ManagedObj .

◆ CleanUpNativeData()

void NAudio.Wave.WaveFormatCustomMarshaler.CleanUpNativeData ( IntPtr pNativeData)
inline

Frees the memory allocated for the native data pointed to by the specified pointer.

Parameters
pNativeDataA pointer to the native data that needs to be deallocated.

This method frees the memory allocated for the native data pointed to by the specified pointer using the Marshal.FreeHGlobal(IntPtr) method.

◆ GetInstance()

static ICustomMarshaler NAudio.Wave.WaveFormatCustomMarshaler.GetInstance ( string cookie)
inlinestatic

Returns an instance of the WaveFormatCustomMarshaler.

Parameters
cookieThe cookie parameter.
Returns
An instance of the WaveFormatCustomMarshaler.

◆ GetNativeDataSize()

int NAudio.Wave.WaveFormatCustomMarshaler.GetNativeDataSize ( )
inline

Gets the size of the native data.

Exceptions
NotImplementedExceptionThrown when the method is not implemented.

◆ MarshalManagedToNative()

IntPtr NAudio.Wave.WaveFormatCustomMarshaler.MarshalManagedToNative ( object ManagedObj)
inline

Marshals a managed object to its native representation.

Parameters
ManagedObjThe managed object to be marshaled.
Returns
A pointer to the native representation of the managed object.
Here is the call graph for this function:

◆ MarshalNativeToManaged()

object NAudio.Wave.WaveFormatCustomMarshaler.MarshalNativeToManaged ( IntPtr pNativeData)
inline

Marshals a native pointer to a managed WaveFormat object.

Parameters
pNativeDataA pointer to the native data to be marshaled.
Returns
A WaveFormat object representing the marshaled data.
Here is the call graph for this function:

Member Data Documentation

◆ marshaler

WaveFormatCustomMarshaler NAudio.Wave.WaveFormatCustomMarshaler.marshaler = null
staticprivate

The documentation for this class was generated from the following file: