< prev index next >

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

Print this page

        

*** 142,152 **** return i + offset; } #if[byte] private long byteOffset(long i) { ! return arrayBaseOffset + i + offset; } #end[byte] public $type$ get() { return hb[ix(nextGetIndex())]; --- 142,152 ---- return i + offset; } #if[byte] private long byteOffset(long i) { ! return (arrayBaseOffset >> 1) + i + offset; } #end[byte] public $type$ get() { return hb[ix(nextGetIndex())];
< prev index next >