Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
BoolPointer() |
BoolPointer(int size)
Allocates a native
bool array of the given size. |
BoolPointer(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
private void |
allocateArray(int size) |
BoolPointer |
capacity(int capacity)
Sets the capacity and returns this.
|
boolean |
get() |
boolean |
get(int i) |
BoolPointer |
limit(int limit)
Sets the limit and returns this.
|
BoolPointer |
position(int position)
Sets the position and returns this.
|
BoolPointer |
put(boolean b) |
BoolPointer |
put(int i,
boolean b)
Copies the
bool value to the i-th element of a native array. |
address, asBuffer, asByteBuffer, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, init, isNull, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, withDeallocator, zeropublic BoolPointer(int size)
bool array of the given size.size - the number of bool elements to allocatepublic BoolPointer()
Pointer.Pointer()public BoolPointer(Pointer p)
Pointer.Pointer(Pointer)private void allocateArray(int size)
public BoolPointer position(int position)
Pointerarray.position(i)
statement sort of equivalent to the array[i] statement in C++.position in class Pointerposition - the new positionPointer.position(int)public BoolPointer limit(int limit)
Pointerlimit in class Pointerlimit - the new limitPointer.limit(int)public BoolPointer capacity(int capacity)
Pointercapacity in class Pointercapacity - the new capacityPointer.capacity(int)public boolean get()
get(0)public BoolPointer put(boolean b)
put(0, b)public BoolPointer put(int i, boolean b)
bool value to the i-th element of a native array.i - the index into the arrayb - the bool value to copyCopyright © 2015. All Rights Reserved.