< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaNioAccess.java

Print this page

        

@@ -45,19 +45,30 @@
     /**
      * Constructs a direct ByteBuffer referring to the block of memory starting
      * at the given memory address and extending {@code cap} bytes.
      * The {@code ob} parameter is an arbitrary object that is attached
      * to the resulting buffer.
+     * Used by {@code jdk.internal.foreignMemorySegmentImpl}.
      */
-    ByteBuffer newDirectByteBuffer(long addr, int cap, Object ob, MemorySegmentProxy segment);
+    ByteBuffer newDirectByteBuffer(long addr, int cap, Object obj, MemorySegmentProxy segment);
 
     /**
      * Constructs an heap ByteBuffer with given backing array, offset, capacity and segment.
+     * Used by {@code jdk.internal.foreignMemorySegmentImpl}.
      */
     ByteBuffer newHeapByteBuffer(byte[] hb, int offset, int capacity, MemorySegmentProxy segment);
 
+    /**
+     * Used by {@code jdk.internal.foreign.Utils}.
+     */
     Object getBufferBase(ByteBuffer bb);
 
+    /**
+     * Used by {@code jdk.internal.foreign.Utils}.
+     */
     long getBufferAddress(ByteBuffer bb);
 
+    /**
+     * Used by byte buffer var handle views.
+     */
     void checkSegment(Buffer buffer);
 }
< prev index next >