src/share/classes/java/nio/Heap-X-Buffer.java.template

Print this page

        

@@ -137,10 +137,16 @@
 
     public $type$ get(int i) {
         return hb[ix(checkIndex(i))];
     }
 
+#if[streamableType]
+    $type$ getUnchecked(int i) {
+        return hb[ix(i)];
+    }
+#end[streamableType]
+
     public $Type$Buffer get($type$[] dst, int offset, int length) {
         checkBounds(offset, length, dst.length);
         if (length > remaining())
             throw new BufferUnderflowException();
         System.arraycopy(hb, ix(position()), dst, offset, length);