m
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
/// <summary>Provides custom wrappers for handling method calls.</summary>
|
||||
// Token: 0x0200059F RID: 1439
|
||||
[Token(Token = "0x200059F")]
|
||||
[ComVisible(true)]
|
||||
public interface ICustomMarshaler
|
||||
{
|
||||
/// <summary>Converts the unmanaged data to managed data.</summary>
|
||||
/// <param name="pNativeData">A pointer to the unmanaged data to be wrapped.</param>
|
||||
/// <returns>An object that represents the managed view of the COM data.</returns>
|
||||
// Token: 0x06002CCB RID: 11467
|
||||
[Token(Token = "0x6002CCB")]
|
||||
[Address(Slot = "0")]
|
||||
object MarshalNativeToManaged(IntPtr pNativeData);
|
||||
|
||||
/// <summary>Converts the managed data to unmanaged data.</summary>
|
||||
/// <param name="ManagedObj">The managed object to be converted.</param>
|
||||
/// <returns>A pointer to the COM view of the managed object.</returns>
|
||||
// Token: 0x06002CCC RID: 11468
|
||||
[Token(Token = "0x6002CCC")]
|
||||
[Address(Slot = "1")]
|
||||
IntPtr MarshalManagedToNative(object ManagedObj);
|
||||
|
||||
/// <summary>Performs necessary cleanup of the unmanaged data when it is no longer needed.</summary>
|
||||
/// <param name="pNativeData">A pointer to the unmanaged data to be destroyed.</param>
|
||||
// Token: 0x06002CCD RID: 11469
|
||||
[Token(Token = "0x6002CCD")]
|
||||
[Address(Slot = "2")]
|
||||
void CleanUpNativeData(IntPtr pNativeData);
|
||||
|
||||
/// <summary>Performs necessary cleanup of the managed data when it is no longer needed.</summary>
|
||||
/// <param name="ManagedObj">The managed object to be destroyed.</param>
|
||||
// Token: 0x06002CCE RID: 11470
|
||||
[Token(Token = "0x6002CCE")]
|
||||
[Address(Slot = "3")]
|
||||
void CleanUpManagedData(object ManagedObj);
|
||||
|
||||
/// <summary>Returns the size of the native data to be marshaled.</summary>
|
||||
/// <returns>The size, in bytes, of the native data.</returns>
|
||||
// Token: 0x06002CCF RID: 11471
|
||||
[Token(Token = "0x6002CCF")]
|
||||
[Address(Slot = "4")]
|
||||
int GetNativeDataSize();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user