public class TypedPointer extends Pointer<T>
typedef struct _A *A;
Pointer.ListType, Pointer.Releaser, Pointer.StringTypedefaultAlignment, NULL, SIZE| Constructor and Description |
|---|
TypedPointer(long address) |
TypedPointer(Pointer<?> ptr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean()
Read a boolean value from the pointed memory location
|
boolean |
getBooleanAtOffset(long byteOffset)
Read a boolean value from the pointed memory location shifted by a byte offset
|
byte |
getByte()
Read a byte value from the pointed memory location
|
byte |
getByteAtOffset(long byteOffset)
Read a byte value from the pointed memory location shifted by a byte offset
|
char |
getChar()
Read a char value from the pointed memory location
|
char |
getCharAtOffset(long byteOffset)
Read a char value from the pointed memory location shifted by a byte offset
|
double |
getDouble()
Read a double value from the pointed memory location
|
double |
getDoubleAtOffset(long byteOffset)
Read a double value from the pointed memory location shifted by a byte offset
|
float |
getFloat()
Read a float value from the pointed memory location
|
float |
getFloatAtOffset(long byteOffset)
Read a float value from the pointed memory location shifted by a byte offset
|
int |
getInt()
Read a int value from the pointed memory location
|
int |
getIntAtOffset(long byteOffset)
Read a int value from the pointed memory location shifted by a byte offset
|
long |
getLong()
Read a long value from the pointed memory location
|
long |
getLongAtOffset(long byteOffset)
Read a long value from the pointed memory location shifted by a byte offset
|
short |
getShort()
Read a short value from the pointed memory location
|
short |
getShortAtOffset(long byteOffset)
Read a short value from the pointed memory location shifted by a byte offset
|
boolean |
isOrdered()
Whether this pointer reads data in the system's native byte order or not.
|
Pointer<T> |
setBoolean(boolean value)
Write a boolean value to the pointed memory location
|
Pointer<T> |
setBooleanAtOffset(long byteOffset,
boolean value)
Write a boolean value to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setByte(byte value)
Write a byte value to the pointed memory location
|
Pointer<T> |
setByteAtOffset(long byteOffset,
byte value)
Write a byte value to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setChar(char value)
Write a char value to the pointed memory location
|
Pointer<T> |
setCharAtOffset(long byteOffset,
char value)
Write a char value to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setCLongsAtOffset(long byteOffset,
int[] values)
Deprecated.
Avoid using the byte offset methods variants unless you know what you're doing (may cause alignment issues). Please favour
Pointer.setCLongs(int[]) over this method. |
Pointer<T> |
setCLongsAtOffset(long byteOffset,
long[] values,
int valuesOffset,
int length)
Write an array of CLong values to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setDouble(double value)
Write a double value to the pointed memory location
|
Pointer<T> |
setDoubleAtOffset(long byteOffset,
double value)
Write a double value to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setFloat(float value)
Write a float value to the pointed memory location
|
Pointer<T> |
setFloatAtOffset(long byteOffset,
float value)
Write a float value to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setInt(int value)
Write a int value to the pointed memory location
|
Pointer<T> |
setIntAtOffset(long byteOffset,
int value)
Write a int value to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setLong(long value)
Write a long value to the pointed memory location
|
Pointer<T> |
setLongAtOffset(long byteOffset,
long value)
Write a long value to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setShort(short value)
Write a short value to the pointed memory location
|
Pointer<T> |
setShortAtOffset(long byteOffset,
short value)
Write a short value to the pointed memory location shifted by a byte offset
|
Pointer<T> |
setSizeTsAtOffset(long byteOffset,
int[] values)
Deprecated.
Avoid using the byte offset methods variants unless you know what you're doing (may cause alignment issues). Please favour
Pointer.setSizeTs(int[]) over this method. |
Pointer<T> |
setSizeTsAtOffset(long byteOffset,
long[] values,
int valuesOffset,
int length)
Write an array of SizeT values to the pointed memory location shifted by a byte offset
|
allocate, allocate, allocate, allocateAlignedArray, allocateAlignedArray, allocateAlignedBytes, allocateArray, allocateArray, allocateArray, allocateArray, allocateBoolean, allocateBooleans, allocateBooleans, allocateBooleans, allocateByte, allocateBytes, allocateBytes, allocateBytes, allocateBytes, allocateChar, allocateChars, allocateChars, allocateChars, allocateCLong, allocateCLongs, allocateDouble, allocateDoubles, allocateDoubles, allocateDoubles, allocateDynamicCallback, allocateFloat, allocateFloats, allocateFloats, allocateFloats, allocateInt, allocateInts, allocateInts, allocateInts, allocateList, allocateList, allocateList, allocateLong, allocateLongs, allocateLongs, allocateLongs, allocatePointer, allocatePointer, allocatePointer, allocatePointerPointer, allocatePointerPointer, allocatePointers, allocatePointers, allocatePointers, allocateShort, allocateShorts, allocateShorts, allocateShorts, allocateSizeT, allocateSizeTs, allocateTypedPointer, allocateTypedPointers, apply, as, as, as, asDynamicFunction, asList, asList, asUntyped, clearBytes, clearBytesAtOffset, clearValidBytes, clone, compareBytes, compareBytesAtOffset, compareTo, copyBytesAtOffsetTo, copyBytesTo, copyTo, copyTo, equals, find, findByte, findLast, get, get, get, getAddress, getArray, getArray, getArrayAtOffset, getBooleanAtIndex, getBooleans, getBooleans, getBooleansAtOffset, getBuffer, getBuffer, getBufferAtOffset, getByteAtIndex, getByteBuffer, getByteBuffer, getByteBufferAtOffset, getBytes, getBytes, getBytes, getBytes, getBytesAtOffset, getBytesAtOffset, getCharAtIndex, getChars, getChars, getCharsAtOffset, getCLong, getCLongAtIndex, getCLongAtOffset, getCLongs, getCLongs, getCLongsAtOffset, getCString, getCStringAtOffset, getDoubleAtIndex, getDoubleBuffer, getDoubleBuffer, getDoubleBufferAtOffset, getDoubles, getDoubles, getDoubles, getDoubles, getDoublesAtOffset, getDoublesAtOffset, getFloatAtIndex, getFloatBuffer, getFloatBuffer, getFloatBufferAtOffset, getFloats, getFloats, getFloats, getFloats, getFloatsAtOffset, getFloatsAtOffset, getIntAtIndex, getIntBuffer, getIntBuffer, getIntBufferAtOffset, getIntegralAtOffset, getInts, getInts, getInts, getInts, getIntsAtOffset, getIntsAtOffset, getIO, getLongAtIndex, getLongBuffer, getLongBuffer, getLongBufferAtOffset, getLongs, getLongs, getLongs, getLongs, getLongsAtOffset, getLongsAtOffset, getNativeObject, getNativeObject, getNativeObjectAtOffset, getNativeObjectAtOffset, getPeer, getPeer, getPointer, getPointer, getPointer, getPointer, getPointer, getPointer, getPointerAtIndex, getPointerAtOffset, getPointerAtOffset, getPointerAtOffset, getPointerAtOffset, getPointers, getPointers, getPointersAtOffset, getPointersAtOffset, getPointersAtOffset, getPointersAtOffset, getReference, getShortAtIndex, getShortBuffer, getShortBuffer, getShortBufferAtOffset, getShorts, getShorts, getShorts, getShorts, getShortsAtOffset, getShortsAtOffset, getSizeT, getSizeTAtIndex, getSizeTAtOffset, getSizeTs, getSizeTs, getSizeTsAtOffset, getString, getString, getStringAtOffset, getTargetSize, getTargetType, getValidBytes, getValidElements, getWideCString, getWideCStringAtOffset, hashCode, intEnumType, isAligned, isAligned, iterator, moveBytesAtOffsetTo, moveBytesTo, moveBytesTo, next, next, offset, order, order, pointerTo, pointerToAddress, pointerToAddress, pointerToAddress, pointerToAddress, pointerToAddress, pointerToAddress, pointerToAddress, pointerToAddress, pointerToAddress, pointerToAddress, pointerToArray, pointerToBoolean, pointerToBooleans, pointerToBooleans, pointerToBooleans, pointerToBuffer, pointerToByte, pointerToBytes, pointerToBytes, pointerToBytes, pointerToBytes, pointerToChar, pointerToChars, pointerToChars, pointerToChars, pointerToChars, pointerToCLong, pointerToCLong, pointerToCLongs, pointerToCLongs, pointerToCLongs, pointerToCString, pointerToCStrings, pointerToDouble, pointerToDoubles, pointerToDoubles, pointerToDoubles, pointerToDoubles, pointerToEnum, pointerToFloat, pointerToFloats, pointerToFloats, pointerToFloats, pointerToFloats, pointerToInt, pointerToInts, pointerToInts, pointerToInts, pointerToInts, pointerToLong, pointerToLongs, pointerToLongs, pointerToLongs, pointerToLongs, pointerToPointer, pointerToPointers, pointerToShort, pointerToShorts, pointerToShorts, pointerToShorts, pointerToShorts, pointerToSizeT, pointerToSizeT, pointerToSizeTs, pointerToSizeTs, pointerToSizeTs, pointerToString, pointerToWideCString, pointerToWideCStrings, pointerType, release, release, set, set, setArray, setArrayAtOffset, setBooleanAtIndex, setBooleans, setBooleansAtOffset, setBooleansAtOffset, setByteAtIndex, setBytes, setBytes, setBytesAtOffset, setBytesAtOffset, setBytesAtOffset, setBytesAtOffset, setCharAtIndex, setChars, setChars, setCharsAtOffset, setCharsAtOffset, setCharsAtOffset, setCharsAtOffset, setCLong, setCLong, setCLongAtIndex, setCLongAtOffset, setCLongAtOffset, setCLongs, setCLongs, setCLongs, setCLongsAtOffset, setCLongsAtOffset, setCString, setCStringAtOffset, setDoubleAtIndex, setDoubles, setDoubles, setDoublesAtOffset, setDoublesAtOffset, setDoublesAtOffset, setDoublesAtOffset, setFloatAtIndex, setFloats, setFloats, setFloatsAtOffset, setFloatsAtOffset, setFloatsAtOffset, setFloatsAtOffset, setIntAtIndex, setIntegralAtOffset, setInts, setInts, setIntsAtOffset, setIntsAtOffset, setIntsAtOffset, setIntsAtOffset, setLongAtIndex, setLongs, setLongs, setLongsAtOffset, setLongsAtOffset, setLongsAtOffset, setLongsAtOffset, setNativeObject, setPointer, setPointerAtIndex, setPointerAtOffset, setPointers, setPointersAtOffset, setPointersAtOffset, setShortAtIndex, setShorts, setShorts, setShortsAtOffset, setShortsAtOffset, setShortsAtOffset, setShortsAtOffset, setSizeT, setSizeT, setSizeTAtIndex, setSizeTAtOffset, setSizeTAtOffset, setSizeTs, setSizeTs, setSizeTs, setSizeTsAtOffset, setSizeTsAtOffset, setString, setStringAtOffset, setValues, setValuesAtOffset, setValuesAtOffset, setWideCString, setWideCStringAtOffset, toArray, toArray, toString, update, updateBuffer, validBytes, validElements, withoutValidityInformation, withReleaserforEach, spliteratorpublic TypedPointer(long address)
public TypedPointer(Pointer<?> ptr)
public boolean isOrdered()
PointerPointer.order(), Pointer.order(ByteOrder)public Pointer<T> setInt(int value)
Pointerpublic Pointer<T> setIntAtOffset(long byteOffset, int value)
PointersetIntAtOffset in class Pointer<T>public int getInt()
Pointerpublic int getIntAtOffset(long byteOffset)
PointergetIntAtOffset in class Pointer<T>public Pointer<T> setLong(long value)
Pointerpublic Pointer<T> setLongAtOffset(long byteOffset, long value)
PointersetLongAtOffset in class Pointer<T>public long getLong()
Pointerpublic long getLongAtOffset(long byteOffset)
PointergetLongAtOffset in class Pointer<T>public Pointer<T> setShort(short value)
Pointerpublic Pointer<T> setShortAtOffset(long byteOffset, short value)
PointersetShortAtOffset in class Pointer<T>public short getShort()
Pointerpublic short getShortAtOffset(long byteOffset)
PointergetShortAtOffset in class Pointer<T>public Pointer<T> setByte(byte value)
Pointerpublic Pointer<T> setByteAtOffset(long byteOffset, byte value)
PointersetByteAtOffset in class Pointer<T>public byte getByte()
Pointerpublic byte getByteAtOffset(long byteOffset)
PointergetByteAtOffset in class Pointer<T>public Pointer<T> setChar(char value)
Pointerpublic Pointer<T> setCharAtOffset(long byteOffset, char value)
PointersetCharAtOffset in class Pointer<T>public char getChar()
Pointerpublic char getCharAtOffset(long byteOffset)
PointergetCharAtOffset in class Pointer<T>public Pointer<T> setFloat(float value)
Pointerpublic Pointer<T> setFloatAtOffset(long byteOffset, float value)
PointersetFloatAtOffset in class Pointer<T>public float getFloat()
Pointerpublic float getFloatAtOffset(long byteOffset)
PointergetFloatAtOffset in class Pointer<T>public Pointer<T> setDouble(double value)
Pointerpublic Pointer<T> setDoubleAtOffset(long byteOffset, double value)
PointersetDoubleAtOffset in class Pointer<T>public double getDouble()
Pointerpublic double getDoubleAtOffset(long byteOffset)
PointergetDoubleAtOffset in class Pointer<T>public Pointer<T> setBoolean(boolean value)
PointersetBoolean in class Pointer<T>public Pointer<T> setBooleanAtOffset(long byteOffset, boolean value)
PointersetBooleanAtOffset in class Pointer<T>public boolean getBoolean()
PointergetBoolean in class Pointer<T>public boolean getBooleanAtOffset(long byteOffset)
PointergetBooleanAtOffset in class Pointer<T>public Pointer<T> setSizeTsAtOffset(long byteOffset, long[] values, int valuesOffset, int length)
PointersetSizeTsAtOffset in class Pointer<T>public Pointer<T> setSizeTsAtOffset(long byteOffset, int[] values)
Pointer.setSizeTs(int[]) over this method.setSizeTsAtOffset in class Pointer<T>public Pointer<T> setCLongsAtOffset(long byteOffset, long[] values, int valuesOffset, int length)
PointersetCLongsAtOffset in class Pointer<T>public Pointer<T> setCLongsAtOffset(long byteOffset, int[] values)
Pointer.setCLongs(int[]) over this method.setCLongsAtOffset in class Pointer<T>Copyright © 2009-2015. All Rights Reserved.