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

Print this page

        

*** 251,260 **** --- 251,266 ---- public $type$ get(int i) { return $fromBits$($swap$(unsafe.get$Swaptype$(ix(checkIndex(i))))); } + #if[streamableType] + $type$ getUnchecked(int i) { + return $fromBits$($swap$(unsafe.get$Swaptype$(ix(i)))); + } + #end[streamableType] + public $Type$Buffer get($type$[] dst, int offset, int length) { #if[rw] if ((length << $LG_BYTES_PER_VALUE$) > Bits.JNI_COPY_TO_ARRAY_THRESHOLD) { checkBounds(offset, length, dst.length); int pos = position();