@@ -55,26 +55,26 @@ public byte get(long position) {
5555 }
5656
5757 @ Override
58- public void get (long position , byte [] b , int off , int len ) {
58+ public void get (long position , byte [] buffer , int off , int len ) {
5959 ensureOpen ();
6060 long address = validate (position );
6161 if (address + len > end )
6262 throw new IllegalArgumentException ();
63- UNSAFE .copyMemory (null , address , b , Unsafe .ARRAY_BYTE_BASE_OFFSET + off , len );
63+ UNSAFE .copyMemory (null , address , buffer , Unsafe .ARRAY_BYTE_BASE_OFFSET + off , len );
6464 }
6565
6666 @ Override
67- public void transferTo (OutputStream out , byte [] buf ) throws IOException {
67+ public void transferTo (OutputStream out , byte [] buffer ) throws IOException {
6868 ensureOpen ();
69- int copyThreshold = buf .length ;
69+ int copyThreshold = buffer .length ;
7070 long address = this .address ;
7171 long remaining = end - address ;
7272 while (remaining != 0L ) {
7373 int length = (int ) Math .min (copyThreshold , remaining );
74- UNSAFE .copyMemory (null , address , buf , Unsafe .ARRAY_BYTE_BASE_OFFSET , length );
74+ UNSAFE .copyMemory (null , address , buffer , Unsafe .ARRAY_BYTE_BASE_OFFSET , length );
7575 remaining -= length ;
7676 address += length ;
77- out .write (buf , 0 , length );
77+ out .write (buffer , 0 , length );
7878 }
7979 }
8080
0 commit comments