org.bridj.objc
Class SEL

java.lang.Object
  extended by org.bridj.Pointer<T>
      extended by org.bridj.TypedPointer
          extended by org.bridj.objc.SEL
All Implemented Interfaces:
Comparable, Iterable

public class SEL
extends TypedPointer


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bridj.Pointer
Pointer.ListType, Pointer.Releaser, Pointer.StringType
 
Field Summary
 
Fields inherited from class org.bridj.Pointer
defaultAlignment, NULL, SIZE
 
Constructor Summary
SEL(long peer)
           
SEL(Pointer<?> ptr)
           
 
Method Summary
 boolean equals(Object o)
          Test equality of the pointer using the address.
 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
 String getName()
           
 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
 int hashCode()
          Compute a hash code based on pointed address.
 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
 String toString()
           
static SEL valueOf(String name)
           
 
Methods inherited from class org.bridj.Pointer
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, 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, 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, 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, intEnumType, isAligned, isAligned, iterator, moveBytesAtOffsetTo, moveBytesTo, moveBytesTo, next, next, offset, order, order, pointerTo, pointerTo, pointerTo, 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, 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, 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, update, updateBuffer, validBytes, validElements, withoutValidityInformation, withReleaser
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SEL

public SEL(long peer)

SEL

public SEL(Pointer<?> ptr)
Method Detail

valueOf

public static SEL valueOf(String name)

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Pointer

equals

public boolean equals(Object o)
Description copied from class: Pointer
Test equality of the pointer using the address.

Overrides:
equals in class Pointer
Returns:
true if and only if obj is a Pointer instance and obj.getPeer() == this.getPeer()

hashCode

public int hashCode()
Description copied from class: Pointer
Compute a hash code based on pointed address.

Overrides:
hashCode in class Pointer

isOrdered

public boolean isOrdered()
Description copied from class: Pointer
Whether this pointer reads data in the system's native byte order or not. See Pointer.order(), Pointer.order(ByteOrder)

Specified by:
isOrdered in class Pointer<T>

setInt

public Pointer<T> setInt(int value)
Description copied from class: Pointer
Write a int value to the pointed memory location

Specified by:
setInt in class Pointer<T>

setIntAtOffset

public Pointer<T> setIntAtOffset(long byteOffset,
                                 int value)
Description copied from class: Pointer
Write a int value to the pointed memory location shifted by a byte offset

Specified by:
setIntAtOffset in class Pointer<T>

getInt

public int getInt()
Description copied from class: Pointer
Read a int value from the pointed memory location

Specified by:
getInt in class Pointer<T>

getIntAtOffset

public int getIntAtOffset(long byteOffset)
Description copied from class: Pointer
Read a int value from the pointed memory location shifted by a byte offset

Specified by:
getIntAtOffset in class Pointer<T>

setLong

public Pointer<T> setLong(long value)
Description copied from class: Pointer
Write a long value to the pointed memory location

Specified by:
setLong in class Pointer<T>

setLongAtOffset

public Pointer<T> setLongAtOffset(long byteOffset,
                                  long value)
Description copied from class: Pointer
Write a long value to the pointed memory location shifted by a byte offset

Specified by:
setLongAtOffset in class Pointer<T>

getLong

public long getLong()
Description copied from class: Pointer
Read a long value from the pointed memory location

Specified by:
getLong in class Pointer<T>

getLongAtOffset

public long getLongAtOffset(long byteOffset)
Description copied from class: Pointer
Read a long value from the pointed memory location shifted by a byte offset

Specified by:
getLongAtOffset in class Pointer<T>

setShort

public Pointer<T> setShort(short value)
Description copied from class: Pointer
Write a short value to the pointed memory location

Specified by:
setShort in class Pointer<T>

setShortAtOffset

public Pointer<T> setShortAtOffset(long byteOffset,
                                   short value)
Description copied from class: Pointer
Write a short value to the pointed memory location shifted by a byte offset

Specified by:
setShortAtOffset in class Pointer<T>

getShort

public short getShort()
Description copied from class: Pointer
Read a short value from the pointed memory location

Specified by:
getShort in class Pointer<T>

getShortAtOffset

public short getShortAtOffset(long byteOffset)
Description copied from class: Pointer
Read a short value from the pointed memory location shifted by a byte offset

Specified by:
getShortAtOffset in class Pointer<T>

setByte

public Pointer<T> setByte(byte value)
Description copied from class: Pointer
Write a byte value to the pointed memory location

Specified by:
setByte in class Pointer<T>

setByteAtOffset

public Pointer<T> setByteAtOffset(long byteOffset,
                                  byte value)
Description copied from class: Pointer
Write a byte value to the pointed memory location shifted by a byte offset

Specified by:
setByteAtOffset in class Pointer<T>

getByte

public byte getByte()
Description copied from class: Pointer
Read a byte value from the pointed memory location

Specified by:
getByte in class Pointer<T>

getByteAtOffset

public byte getByteAtOffset(long byteOffset)
Description copied from class: Pointer
Read a byte value from the pointed memory location shifted by a byte offset

Specified by:
getByteAtOffset in class Pointer<T>

setChar

public Pointer<T> setChar(char value)
Description copied from class: Pointer
Write a char value to the pointed memory location

Specified by:
setChar in class Pointer<T>

setCharAtOffset

public Pointer<T> setCharAtOffset(long byteOffset,
                                  char value)
Description copied from class: Pointer
Write a char value to the pointed memory location shifted by a byte offset

Specified by:
setCharAtOffset in class Pointer<T>

getChar

public char getChar()
Description copied from class: Pointer
Read a char value from the pointed memory location

Specified by:
getChar in class Pointer<T>

getCharAtOffset

public char getCharAtOffset(long byteOffset)
Description copied from class: Pointer
Read a char value from the pointed memory location shifted by a byte offset

Specified by:
getCharAtOffset in class Pointer<T>

setFloat

public Pointer<T> setFloat(float value)
Description copied from class: Pointer
Write a float value to the pointed memory location

Specified by:
setFloat in class Pointer<T>

setFloatAtOffset

public Pointer<T> setFloatAtOffset(long byteOffset,
                                   float value)
Description copied from class: Pointer
Write a float value to the pointed memory location shifted by a byte offset

Specified by:
setFloatAtOffset in class Pointer<T>

getFloat

public float getFloat()
Description copied from class: Pointer
Read a float value from the pointed memory location

Specified by:
getFloat in class Pointer<T>

getFloatAtOffset

public float getFloatAtOffset(long byteOffset)
Description copied from class: Pointer
Read a float value from the pointed memory location shifted by a byte offset

Specified by:
getFloatAtOffset in class Pointer<T>

setDouble

public Pointer<T> setDouble(double value)
Description copied from class: Pointer
Write a double value to the pointed memory location

Specified by:
setDouble in class Pointer<T>

setDoubleAtOffset

public Pointer<T> setDoubleAtOffset(long byteOffset,
                                    double value)
Description copied from class: Pointer
Write a double value to the pointed memory location shifted by a byte offset

Specified by:
setDoubleAtOffset in class Pointer<T>

getDouble

public double getDouble()
Description copied from class: Pointer
Read a double value from the pointed memory location

Specified by:
getDouble in class Pointer<T>

getDoubleAtOffset

public double getDoubleAtOffset(long byteOffset)
Description copied from class: Pointer
Read a double value from the pointed memory location shifted by a byte offset

Specified by:
getDoubleAtOffset in class Pointer<T>

setBoolean

public Pointer<T> setBoolean(boolean value)
Description copied from class: Pointer
Write a boolean value to the pointed memory location

Specified by:
setBoolean in class Pointer<T>

setBooleanAtOffset

public Pointer<T> setBooleanAtOffset(long byteOffset,
                                     boolean value)
Description copied from class: Pointer
Write a boolean value to the pointed memory location shifted by a byte offset

Specified by:
setBooleanAtOffset in class Pointer<T>

getBoolean

public boolean getBoolean()
Description copied from class: Pointer
Read a boolean value from the pointed memory location

Specified by:
getBoolean in class Pointer<T>

getBooleanAtOffset

public boolean getBooleanAtOffset(long byteOffset)
Description copied from class: Pointer
Read a boolean value from the pointed memory location shifted by a byte offset

Specified by:
getBooleanAtOffset in class Pointer<T>

setSizeTsAtOffset

public Pointer<T> setSizeTsAtOffset(long byteOffset,
                                    long[] values,
                                    int valuesOffset,
                                    int length)
Description copied from class: Pointer
Write an array of SizeT values to the pointed memory location shifted by a byte offset

Specified by:
setSizeTsAtOffset in class Pointer<T>

setSizeTsAtOffset

public 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.

Write an array of SizeT values to the pointed memory location shifted by a byte offset

Specified by:
setSizeTsAtOffset in class Pointer<T>

setCLongsAtOffset

public Pointer<T> setCLongsAtOffset(long byteOffset,
                                    long[] values,
                                    int valuesOffset,
                                    int length)
Description copied from class: Pointer
Write an array of CLong values to the pointed memory location shifted by a byte offset

Specified by:
setCLongsAtOffset in class Pointer<T>

setCLongsAtOffset

public 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.

Write an array of CLong values to the pointed memory location shifted by a byte offset

Specified by:
setCLongsAtOffset in class Pointer<T>


Copyright © 2009-2013. All Rights Reserved.