| java.lang.Object org.apache.harmony.awt.nativebridge.NativeBridge
NativeBridge | public class NativeBridge (Code) | | |
Field Summary | |
final public static boolean | is64 | final public static int | ptrSize |
Method Summary | |
public CLongPointer | createCLongPointer(VoidPointer elementPointer) Creates pointer C-lang long data type using some void pointer object. | public CLongPointer | createCLongPointer(int size, boolean direct) Creates pointer to C-lang long data type with given size. | public CLongPointer | createCLongPointer(long addr) Creates pointer to C-lang long data type. | public DoublePointer | createDoublePointer(int size, boolean direct) | public DoublePointer | createDoublePointer(VoidPointer elementPointer) Creates pointer to double data type using some void pointer object. | public DoublePointer | createDoublePointer(long addr) Creates pointer to double data type. | public FloatPointer | createFloatPointer(int size, boolean direct) Creates pointer to float data type with given size. | public FloatPointer | createFloatPointer(VoidPointer elementPointer) Creates pointer to float data type using some void pointer object. | public FloatPointer | createFloatPointer(long addr) Creates pointer to float data type. | public Int16Pointer | createInt16Pointer(int size, boolean direct) Creates pointer to 2-byte data type with given size. | public Int16Pointer | createInt16Pointer(VoidPointer elementPointer) Creates pointer to 2-byte data type using some void pointer object. | public Int16Pointer | createInt16Pointer(long addr) Creates pointer to 2-byte data type. | public Int16Pointer | createInt16Pointer(String str, boolean direct) Creates UTF16 (Unicode) copy of String object. | public Int32Pointer | createInt32Pointer(int size, boolean direct) Creates pointer to 4-byte data type with given size. | public Int32Pointer | createInt32Pointer(VoidPointer elementPointer) Creates pointer to 4-byte data type using some void pointer object. | public Int32Pointer | createInt32Pointer(long addr) Creates pointer to 4-byte data type. | public Int64Pointer | createInt64Pointer(int size, boolean direct) Creates pointer to 8-byte data type with given size. | public Int64Pointer | createInt64Pointer(VoidPointer elementPointer) Creates pointer to 8-byte data type using some void pointer object. | public Int64Pointer | createInt64Pointer(long addr) Creates pointer to 8-byte data type. | public Int8Pointer | createInt8Pointer(int size, boolean direct) Creates pointer to 1-byte data type with given size. | public Int8Pointer | createInt8Pointer(String str, boolean direct) Creates modified UTF8 encoded copy of String object in native heap or in java array. | public Int8Pointer | createInt8Pointer(long addr) Creates pointer to 1-byte data type. | public Int8Pointer | createInt8Pointer(VoidPointer elementPointer) Creates pointer to 1-byte data type using some void pointer object. | public PointerPointer | createPointerPointer(int size, boolean direct) | public PointerPointer | createPointerPointer(long ptrPtr) | public PointerPointer | createPointerPointer(VoidPointer p, boolean direct) Creates pointer to pointer using void pointer object. | public Int16Pointer | createString(String str, boolean direct) Creates UTF16 (Unicode) copy of String object. | public Int8Pointer | createStringUTF(String str, boolean direct) Creates modified UTF8 encoded copy of String object in native heap or in java array. | public static NativeBridge | getInstance() |
is64 | final public static boolean is64(Code) | | |
ptrSize | final public static int ptrSize(Code) | | |
createCLongPointer | public CLongPointer createCLongPointer(VoidPointer elementPointer)(Code) | | Creates pointer C-lang long data type using some void pointer object.
Parameters: elementPointer - pointer object that should be wrapped |
createCLongPointer | public CLongPointer createCLongPointer(int size, boolean direct)(Code) | | Creates pointer to C-lang long data type with given size.
Parameters: size - amount of memory in 1-bytes units that should be allocated. Parameters: direct - true for nativememory usage, false - for java array usage |
createCLongPointer | public CLongPointer createCLongPointer(long addr)(Code) | | Creates pointer to C-lang long data type.
Parameters: addr - - native memory address |
createDoublePointer | public DoublePointer createDoublePointer(int size, boolean direct)(Code) | | FloatPointer factory methods
|
createDoublePointer | public DoublePointer createDoublePointer(VoidPointer elementPointer)(Code) | | Creates pointer to double data type using some void pointer object.
Parameters: elementPointer - pointer object that should be wrapped |
createDoublePointer | public DoublePointer createDoublePointer(long addr)(Code) | | Creates pointer to double data type.
Parameters: addr - - native memory address |
createFloatPointer | public FloatPointer createFloatPointer(int size, boolean direct)(Code) | | Creates pointer to float data type with given size.
Parameters: size - amount of memory in 4-bytes units that should be allocated. Parameters: direct - true for nativememory usage, false - for java array usage |
createFloatPointer | public FloatPointer createFloatPointer(VoidPointer elementPointer)(Code) | | Creates pointer to float data type using some void pointer object.
Parameters: elementPointer - pointer object that should be wrapped |
createFloatPointer | public FloatPointer createFloatPointer(long addr)(Code) | | Creates pointer to float data type.
Parameters: addr - - native memory address |
createInt16Pointer | public Int16Pointer createInt16Pointer(int size, boolean direct)(Code) | | Creates pointer to 2-byte data type with given size.
Parameters: size - amount of memory in 2-bytes units that should be allocated. Parameters: direct - true for nativememory usage, false - for java array usage |
createInt16Pointer | public Int16Pointer createInt16Pointer(VoidPointer elementPointer)(Code) | | Creates pointer to 2-byte data type using some void pointer object.
Parameters: elementPointer - pointer object that should be wrapped |
createInt16Pointer | public Int16Pointer createInt16Pointer(long addr)(Code) | | Creates pointer to 2-byte data type.
Parameters: addr - - native memory address |
createInt16Pointer | public Int16Pointer createInt16Pointer(String str, boolean direct)(Code) | | Creates UTF16 (Unicode) copy of String object.
Parameters: str - - original string Parameters: direct - - true to create string in nativememory, false - using java array |
createInt32Pointer | public Int32Pointer createInt32Pointer(int size, boolean direct)(Code) | | Creates pointer to 4-byte data type with given size.
Parameters: size - amount of memory in 4-bytes units that should be allocated. Parameters: direct - true for nativememory usage, false - for java array usage |
createInt32Pointer | public Int32Pointer createInt32Pointer(VoidPointer elementPointer)(Code) | | Creates pointer to 4-byte data type using some void pointer object.
Parameters: elementPointer - pointer object that should be wrapped |
createInt32Pointer | public Int32Pointer createInt32Pointer(long addr)(Code) | | Creates pointer to 4-byte data type.
Parameters: addr - - native memory address |
createInt64Pointer | public Int64Pointer createInt64Pointer(int size, boolean direct)(Code) | | Creates pointer to 8-byte data type with given size.
Parameters: size - amount of memory in 8-bytes units that should be allocated. Parameters: direct - true for nativememory usage, false - for java array usage |
createInt64Pointer | public Int64Pointer createInt64Pointer(VoidPointer elementPointer)(Code) | | Creates pointer to 8-byte data type using some void pointer object.
Parameters: elementPointer - pointer object that should be wrapped |
createInt64Pointer | public Int64Pointer createInt64Pointer(long addr)(Code) | | Creates pointer to 8-byte data type.
Parameters: addr - - native memory address |
createInt8Pointer | public Int8Pointer createInt8Pointer(int size, boolean direct)(Code) | | Creates pointer to 1-byte data type with given size.
Parameters: size - amount of memory in 1-bytes units that should be allocated. Parameters: direct - true for nativememory usage, false - for java array usage |
createInt8Pointer | public Int8Pointer createInt8Pointer(String str, boolean direct)(Code) | | Creates modified UTF8 encoded copy of String object in native heap or in java array.
depending on direct parameter.
Parameters: str - - original string Parameters: direct - - true to create string in nativememory, false - using java array |
createInt8Pointer | public Int8Pointer createInt8Pointer(long addr)(Code) | | Creates pointer to 1-byte data type.
Parameters: addr - - native memory address |
createInt8Pointer | public Int8Pointer createInt8Pointer(VoidPointer elementPointer)(Code) | | Creates pointer to 1-byte data type using some void pointer object.
Parameters: elementPointer - pointer object that should be wrapped |
createPointerPointer | public PointerPointer createPointerPointer(int size, boolean direct)(Code) | | PointerPointer factory methods
|
createPointerPointer | public PointerPointer createPointerPointer(VoidPointer p, boolean direct)(Code) | | Creates pointer to pointer using void pointer object.
Parameters: p - pointer object that should be wrapped Parameters: direct - true for native memory usage |
createString | public Int16Pointer createString(String str, boolean direct)(Code) | | Creates UTF16 (Unicode) copy of String object.
Parameters: str - - original string Parameters: direct - - true to create string in nativememory, false - using java array |
createStringUTF | public Int8Pointer createStringUTF(String str, boolean direct)(Code) | | Creates modified UTF8 encoded copy of String object in native heap or in java array.
depending on direct parameter.
Parameters: str - - original string Parameters: direct - true to create string in nativememory, false - using java array |
getInstance | public static NativeBridge getInstance()(Code) | | Factory method returns the only instance of the NativeBridge
|
|
|