2004-04-21 Michael Koch <konqueror@gmx.de>
* java/nio/DirectByteBufferImpl.java (shiftDown): Made static, give address as argument and provide a convenience method that overwrites shiftDown in ByteBufferImpl and calls the native shiftDown. * java/nio/MappedByteBufferImpl.java (): Use optimized method in DirectByteBufferImpl. * java/nio/natDirectByteBufferImpl.cc (shiftDown): Changed method signature. Removed usage of array_offset. From-SVN: r80967
This commit is contained in:
committed by
Michael Koch
parent
f9da97f03c
commit
86a80fc352
@@ -65,9 +65,9 @@ java::nio::DirectByteBufferImpl::adjustAddress (RawData* address, jint offset)
|
||||
|
||||
void
|
||||
java::nio::DirectByteBufferImpl::shiftDown
|
||||
(jint dst_offset, jint src_offset, jint count)
|
||||
(RawData* address, jint dst_offset, jint src_offset, jint count)
|
||||
{
|
||||
jbyte* dst = reinterpret_cast<jbyte*> (address) + array_offset + dst_offset;
|
||||
jbyte* src = reinterpret_cast<jbyte*> (address) + array_offset + src_offset;
|
||||
jbyte* dst = reinterpret_cast<jbyte*> (address) + dst_offset;
|
||||
jbyte* src = reinterpret_cast<jbyte*> (address) + src_offset;
|
||||
::memmove(dst, src, count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user