|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.odi.jcpp.charPU
The charPU class is the unsafe counterpart class for the charP class. The charPU class contains static methods for unsafe operations on instances of the associated peer class, charP. Unsafe operations include operations such as array access and casting.
Method Summary | |
static charP |
cast(PeerPointer p)
Creates a charP object and uses the same linear object reference (linear address) as the specified peer pointer object. |
static void |
deleteArray(byte[] linearObjectReference)
Deallocates a C++ character array. |
static void |
deleteArray(charP theArray)
Deallocates a C++ character array. |
static charP |
makeArray(Placement p,
int size)
Creates a C++ array in which the type of the elements is char. |
static char |
ref(charP theArray,
int index)
Returns a particular element from the specified C++ array. |
static void |
set(charP theArray,
int index,
char newValue)
Sets the array element in the specified position to the specified value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static charP makeArray(Placement p, int size)
p
- The placement in which to allocate the array. size
- The number of elements in the array. public static void deleteArray(charP theArray)
theArray
- The C++ array you want to delete. public static void deleteArray(byte[] linearObjectReference)
linearObjectReference
- The linear object reference of the
C++ array you want to delete. public static char ref(charP theArray, int index)
theArray
- The array that contains the element you want. index
- The position of the desired element in the array.
Postions begin at 0. If you want the third element, specify 2. public static void set(charP theArray, int index, char newValue)
theArray
- The array that contains the element for which you
want to specify a value. index
- The position of the element in the array.newValue
- The value for the element in the specified position.public static charP cast(PeerPointer p)
p
- The peer pointer object whose linear address you want to copy.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |