Custom marshaller for WaveFormat structures.
More...
|
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.
|
|
Custom marshaller for WaveFormat structures.
◆ CleanUpManagedData()
void NAudio.Wave.WaveFormatCustomMarshaler.CleanUpManagedData |
( |
object | ManagedObj | ) |
|
|
inline |
Cleans up managed data for the specified managed object.
- Parameters
-
ManagedObj | The 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
-
pNativeData | A 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
-
cookie | The cookie parameter. |
- Returns
- An instance of the WaveFormatCustomMarshaler.
◆ GetNativeDataSize()
int NAudio.Wave.WaveFormatCustomMarshaler.GetNativeDataSize |
( |
| ) |
|
|
inline |
Gets the size of the native data.
- Exceptions
-
NotImplementedException | Thrown when the method is not implemented. |
◆ MarshalManagedToNative()
IntPtr NAudio.Wave.WaveFormatCustomMarshaler.MarshalManagedToNative |
( |
object | ManagedObj | ) |
|
|
inline |
Marshals a managed object to its native representation.
- Parameters
-
ManagedObj | The managed object to be marshaled. |
- Returns
- A pointer to the native representation of the managed object.
◆ MarshalNativeToManaged()
object NAudio.Wave.WaveFormatCustomMarshaler.MarshalNativeToManaged |
( |
IntPtr | pNativeData | ) |
|
|
inline |
Marshals a native pointer to a managed WaveFormat object.
- Parameters
-
pNativeData | A pointer to the native data to be marshaled. |
- Returns
- A WaveFormat object representing the marshaled data.
◆ marshaler
The documentation for this class was generated from the following file: