public class MemoryUtil extends Object
| Constructor and Description |
|---|
MemoryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
GlobalAlloc(int dwBytes)
GlobalAlloc the memory
|
static int |
GlobalFree(int hMem)
GlobalFree target memory
|
static void |
MoveMemory(char[] Destination,
int SourcePtr,
int Length)
MoveMemory
|
static void |
MoveMemory(int[] Destination,
int Source,
int Length)
MoveMemory
|
static void |
MoveMemory(int DestinationPtr,
char[] Source,
int Length)
MoveMemory
|
static void |
MoveMemory(int DestinationPtr,
int[] Source,
int Length)
MoveMemory
|
static void |
MoveMemory(int DestinationPtr,
short[] Source,
int Length)
MoveMemory
|
static void |
MoveMemory(short[] Destination,
int SourcePtr,
int Length)
MoveMemory
|
static int |
SysAllocString(char[] sz)
Allocate OLE String
|
static void |
SysFreeString(int bstr)
Free OLE String
|
public static int GlobalAlloc(int dwBytes)
dwBytes - sizepublic static int GlobalFree(int hMem)
hMem - target memorypublic static int SysAllocString(char[] sz)
sz - target String as array of charpublic static void SysFreeString(int bstr)
bstr - target BSTR pointerpublic static void MoveMemory(int[] Destination,
int Source,
int Length)
Destination - Source - Length - public static void MoveMemory(short[] Destination,
int SourcePtr,
int Length)
Destination - SourcePtr - Length - public static void MoveMemory(char[] Destination,
int SourcePtr,
int Length)
Destination - SourcePtr - Length - public static void MoveMemory(int DestinationPtr,
short[] Source,
int Length)
DestinationPtr - Source - Length - public static void MoveMemory(int DestinationPtr,
int[] Source,
int Length)
DestinationPtr - Source - Length - public static void MoveMemory(int DestinationPtr,
char[] Source,
int Length)
DestinationPtr - Source - Length -