Package gnu.classpath

Examples of gnu.classpath.Pointer


     * @param resource a memory resource to wrap
     * @return the new ByteBuffer
     */
    public static ByteBuffer wrap(MemoryResource resource) {
        final Object owner = resource.getOwner();
        final Pointer address = new MemoryRawData(resource);
        final int size = resource.getSize().toInt();
        final ByteBuffer result = new DirectByteBufferImpl.ReadWrite(owner, address, size, size, 0);
        result.mark();
        return result;
    }
View Full Code Here


}

static final Object getDirectBufferAddressVmData0X(Object bufObj)
  throws ClassCastException
{ /* called from native code */
  Pointer address = ((Buffer) bufObj).address;
  return address instanceof DirectPointer ?
          ((DirectPointer) address).vmdata : null;
}
View Full Code Here

TOP

Related Classes of gnu.classpath.Pointer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.