diff options
Diffstat (limited to 'libjava/java/nio/natDirectByteBufferImpl.cc')
-rw-r--r-- | libjava/java/nio/natDirectByteBufferImpl.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/java/nio/natDirectByteBufferImpl.cc b/libjava/java/nio/natDirectByteBufferImpl.cc index 2ceea17..7ff06ff 100644 --- a/libjava/java/nio/natDirectByteBufferImpl.cc +++ b/libjava/java/nio/natDirectByteBufferImpl.cc @@ -43,3 +43,12 @@ java::nio::DirectByteBufferImpl::putImpl (jint index, jbyte value) jbyte* pointer = reinterpret_cast<jbyte*> (address) + offset + index; *pointer = value; } + +void +java::nio::DirectByteBufferImpl::shiftDown +(jint dst_offset, jint src_offset, jint count) +{ + jbyte* dst = reinterpret_cast<jbyte*> (address) + offset + dst_offset; + jbyte* src = reinterpret_cast<jbyte*> (address) + offset + src_offset; + ::memmove(dst, src, count); +} |