Method | Description | |
---|---|---|
IsCustomMarshalObject ( object o ) : bool |
Determines whether a specific object is CustomMarshalable
|
|
IsCustomMarshalType ( |
Determines if a given type is CustomMarshalable (i.e. contains any fields with CustomMarshalAsAttribute)
|
|
PtrToStructure ( |
Marshal an unmanaged to pointer to a managed object. If structureType is not CustomMarshalable, this function is the same as Marshal.StructureToPtr.
|
|
RebaseUnmanagedStructure ( |
Rebases all pointers in a CustomMarshalable structure to be valid pointers in a target address space. If structureType is not CustomMarshalable, this function does nothing.
|
|
SizeOf ( |
||
SizeOf ( object o ) : int |
Returns the runtime size of a CustomMarshalable object. If object is not CustomMarshalable, this function is the same as Marshal.SizeOf
|
|
StructureToPtr ( object structure, |
Marshal a managed object to an unmanaged chunk of memory. If structure is not CustomMarshalable this function is the same as Marshal.StructureToPtr.
|
public static IsCustomMarshalObject ( object o ) : bool | ||
o | object | Object to check |
return | bool |
public static IsCustomMarshalType ( |
||
t | Type to check | |
return | bool |
public static PtrToStructure ( |
||
ptr | Pointer to unmanaged memory | |
structureType | Type of managed object to instantiate | |
return | object |
public static RebaseUnmanagedStructure ( |
||
baseAddress | Pointer to unmanaged structure in this process | |
targetAddress | Base address of structure in target process | |
structureType | Type of structure | |
return | void |
public static SizeOf ( object o ) : int | ||
o | object | Object to calculate runtime size of |
return | int |
public static StructureToPtr ( object structure, |
||
structure | object | A managed object to marshal to unmanaged memory. |
ptr | Pointer to unmanaged memory. This must be allocated before call | |
fDeleteOld | bool | Indicates whether to delete old memory first |
return | void |