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

Print this page

        

@@ -113,10 +113,16 @@
 
     public $type$ get(int i) {
         return Bits.get$Type$$BO$(bb, ix(checkIndex(i)));
     }
 
+#if[streamableType]
+   $type$ getUnchecked(int i) {
+        return Bits.get$Type$$BO$(bb, ix(i));
+    }
+#end[streamableType]
+
 #end[rw]
 
     public $Type$Buffer put($type$ x) {
 #if[rw]
         Bits.put$Type$$BO$(bb, ix(nextPutIndex()), x);