Provide utility methods for unmanaged memory management.
More...
Provide utility methods for unmanaged memory management.
static IntPtr wHiteRabbiT.Common.Wacom.CMemUtils.AllocUnmanagedBuf |
( |
Object |
val_I | ) |
|
|
static |
Allocates a pointer to unmanaged heap memory of sizeof(val_I).
- Parameters
-
val_I | managed object that determines #bytes of unmanaged buf |
- Returns
- Unmanaged buffer pointer.
static IntPtr wHiteRabbiT.Common.Wacom.CMemUtils.AllocUnmanagedBuf |
( |
int |
size_I | ) |
|
|
static |
Allocates a pointer to unmanaged heap memory of given size.
- Parameters
-
size_I | number of bytes to allocate |
- Returns
- Unmanaged buffer pointer.
static void wHiteRabbiT.Common.Wacom.CMemUtils.FreeUnmanagedBuf |
( |
IntPtr |
buf_I | ) |
|
|
static |
Free unmanaged memory pointed to by buf_I.
- Parameters
-
buf_I | pointer to unmanaged heap memory |
static WintabPacketExt [] wHiteRabbiT.Common.Wacom.CMemUtils.MarshalDataExtPackets |
( |
UInt32 |
numPkts_I, |
|
|
IntPtr |
buf_I |
|
) |
| |
|
static |
Marshal unmanaged Extension data packets into managed WintabPacketExt data.
- Parameters
-
numPkts_I | number of packets to marshal |
buf_I | pointer to unmanaged heap memory containing data packets |
- Returns
static WintabPacket [] wHiteRabbiT.Common.Wacom.CMemUtils.MarshalDataPackets |
( |
UInt32 |
numPkts_I, |
|
|
IntPtr |
buf_I |
|
) |
| |
|
static |
Marshal unmanaged data packets into managed WintabPacket data.
- Parameters
-
numPkts_I | number of packets to marshal |
buf_I | pointer to unmanaged heap memory containing data packets |
- Returns
static T wHiteRabbiT.Common.Wacom.CMemUtils.MarshalUnmanagedBuf< T > |
( |
IntPtr |
buf_I, |
|
|
int |
size |
|
) |
| |
|
static |
Marshals specified buf to the specified type.
- Template Parameters
-
T | type to which buf_I is marshalled |
- Parameters
-
buf_I | unmanaged heap pointer |
size | expected size of buf_I |
- Returns
- Managed object of specified type.
static string wHiteRabbiT.Common.Wacom.CMemUtils.MarshalUnmanagedString |
( |
IntPtr |
buf_I, |
|
|
int |
size_I |
|
) |
| |
|
static |
Marshals a string from an unmanaged buffer.
- Parameters
-
buf_I | pointer to unmanaged heap memory |
size_I | size of ASCII string, includes null termination |
- Returns
The documentation for this class was generated from the following file:
- D:/wHiteRabbiT/wHiteRabbiT-sTudio/trunk/Unity_4_5/Assets/WR_wHiteRabbiT-sTudio/WRFramework/Common/Wacom/CMemUtils.cs