< prev index next >

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

Print this page

        

*** 37,42 **** --- 37,50 ---- long getCount(); long getTotalCapacity(); long getMemoryUsed(); } BufferPool getDirectBufferPool(); + + /** + * 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. + */ + ByteBuffer newDirectByteBuffer(long addr, int cap, Object ob); }
< prev index next >