Save This Page
Home » openjdk-7 » sun » nio » ch » [javadoc | source]
sun.nio.ch
class: NativeObject [javadoc | source]
java.lang.Object
   sun.nio.ch.NativeObject

Direct Known Subclasses:
    AllocatedNativeObject

Proxies for objects that reside in native memory.
Field Summary
protected static final  Unsafe unsafe     
protected  long allocationAddress     
Constructor:
 NativeObject(long address) 
 NativeObject(long address,
    long offset) 
 protected NativeObject(int size,
    boolean pageAligned) 
Method from sun.nio.ch.NativeObject Summary:
address,   addressSize,   allocationAddress,   byteOrder,   getByte,   getChar,   getDouble,   getFloat,   getInt,   getLong,   getObject,   getShort,   pageSize,   putByte,   putChar,   putDouble,   putFloat,   putInt,   putLong,   putObject,   putShort,   subObject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.nio.ch.NativeObject Detail:
 long address() 
    Returns the native base address of this native object.
 static int addressSize() 
    Returns the native architecture's address size in bytes.
 long allocationAddress() 
 static ByteOrder byteOrder() 
    Returns the byte order of the underlying hardware.
 final byte getByte(int offset) 
    Reads a byte starting at the given offset from base of this native object.
 final char getChar(int offset) 
    Reads a char starting at the given offset from base of this native object.
 final double getDouble(int offset) 
    Reads a double starting at the given offset from base of this native object.
 final float getFloat(int offset) 
    Reads a float starting at the given offset from base of this native object.
 final int getInt(int offset) 
    Reads an int starting at the given offset from base of this native object.
 final long getLong(int offset) 
    Reads a long starting at the given offset from base of this native object.
 NativeObject getObject(int offset) 
    Reads an address from this native object at the given offset and constructs a native object using that address.
 final short getShort(int offset) 
    Reads a short starting at the given offset from base of this native object.
 static int pageSize() 
    Returns the page size of the underlying hardware.
 final  void putByte(int offset,
    byte value) 
    Writes a byte at the specified offset from this native object's base address.
 final  void putChar(int offset,
    char value) 
    Writes a char at the specified offset from this native object's base address.
 final  void putDouble(int offset,
    double value) 
    Writes a double at the specified offset from this native object's base address.
 final  void putFloat(int offset,
    float value) 
    Writes a float at the specified offset from this native object's base address.
 final  void putInt(int offset,
    int value) 
    Writes an int at the specified offset from this native object's base address.
 final  void putLong(int offset,
    long value) 
    Writes a long at the specified offset from this native object's base address.
  void putObject(int offset,
    NativeObject ob) 
    Writes the base address of the given native object at the given offset of this native object.
 final  void putShort(int offset,
    short value) 
    Writes a short at the specified offset from this native object's base address.
 NativeObject subObject(int offset) 
    Creates a new native object starting at the given offset from the base of this native object.