예제 #1
0
 public static ByteBuffer newDirectByteBuffer(Address address, long capacity) {
   Pointer pointer = gnu.classpath.JikesRVMSupport.getPointerFromAddress(address);
   return new DirectByteBufferImpl.ReadWrite(null, pointer, (int) capacity, (int) capacity, 0);
 }
예제 #2
0
 public static Address getDirectBufferAddress(Buffer buffer) {
   if (buffer.address == null) return Address.zero();
   else return gnu.classpath.JikesRVMSupport.getAddressFromPointer(buffer.address);
 }