jdk/src/share/classes/java/nio/Direct-X-Buffer.java.template
changeset 17922 d56eec572de5
parent 10325 b72c20cd583a
child 23010 6dadb192ad81
equal deleted inserted replaced
17921:8ae76f95800a 17922:d56eec572de5
   251 
   251 
   252     public $type$ get(int i) {
   252     public $type$ get(int i) {
   253         return $fromBits$($swap$(unsafe.get$Swaptype$(ix(checkIndex(i)))));
   253         return $fromBits$($swap$(unsafe.get$Swaptype$(ix(checkIndex(i)))));
   254     }
   254     }
   255 
   255 
       
   256 #if[streamableType]
       
   257     $type$ getUnchecked(int i) {
       
   258         return $fromBits$($swap$(unsafe.get$Swaptype$(ix(i))));
       
   259     }
       
   260 #end[streamableType]
       
   261 
   256     public $Type$Buffer get($type$[] dst, int offset, int length) {
   262     public $Type$Buffer get($type$[] dst, int offset, int length) {
   257 #if[rw]
   263 #if[rw]
   258         if ((length << $LG_BYTES_PER_VALUE$) > Bits.JNI_COPY_TO_ARRAY_THRESHOLD) {
   264         if ((length << $LG_BYTES_PER_VALUE$) > Bits.JNI_COPY_TO_ARRAY_THRESHOLD) {
   259             checkBounds(offset, length, dst.length);
   265             checkBounds(offset, length, dst.length);
   260             int pos = position();
   266             int pos = position();