* java/nio/ByteBuffer.java (endian): Make non-private so other java.nio classes can inherit it. (<init>): Don't bother clearing array_offset. * java/nio/ByteBuffer.java (allocate): Re-implement using wrap. * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow. Remove redundant test. * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer, asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer): Use new XxxViewBufferImpl constructors. * java/nio/MappedByteBufferImpl.java: Likewise. * java/nio/DirectByteBufferImpl.java: Likewise. * java/nio/ByteBufferImpl.java: Remove one constructor. Inline super in remaining constructor. * java/nio/ByteBuffer.java: Remove unused constructor. * java/nio/ByteBufferImpl.java (shiftDown): New optimized method. * java/nio/ByteBufferImpl.java (get, put): Add array_offset. * java/nio/DirectByteBufferImpl.java (owner): New field. (offset): Remove unused field. (<init>): Modify one and add another constructor. Change callers. (allocateDirect): Removed - not used. (getImpl, putImpl): Make static and pass address explicitly, to make them useful for MappedByteBufferImpl. (get, put): Check for underflow. Modify for new getImpl. (getImpl): New native method where target is array. (get(byte[],int,int)): Use the above. (adjustAddress): New static native method. (slice, duplicate, asReadOnly): New implementations. * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown, adjustAddress): New or updated native methods. From-SVN: r77919
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
doc | Loading commit data... | |
gcj | Loading commit data... | |
gnu | Loading commit data... | |
include | Loading commit data... | |
java | Loading commit data... | |
javax | Loading commit data... | |
jni | Loading commit data... | |
libltdl | Loading commit data... | |
org | Loading commit data... | |
scripts | Loading commit data... | |
sysdep | Loading commit data... | |
testsuite | Loading commit data... | |
COPYING | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog-1999 | Loading commit data... | |
ChangeLog-2001 | Loading commit data... | |
ChangeLog-2002 | Loading commit data... | |
ChangeLog-2003 | Loading commit data... | |
HACKING | Loading commit data... | |
LIBGCJ_LICENSE | Loading commit data... | |
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... | |
NEWS | Loading commit data... | |
README | Loading commit data... | |
THANKS | Loading commit data... | |
acconfig.h | Loading commit data... | |
acinclude.m4 | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
addr2name.awk | Loading commit data... | |
boehm.cc | Loading commit data... | |
configure | Loading commit data... | |
configure.host | Loading commit data... | |
configure.in | Loading commit data... | |
defineclass.cc | Loading commit data... | |
exception.cc | Loading commit data... | |
gij.cc | Loading commit data... | |
interpret.cc | Loading commit data... | |
jni.cc | Loading commit data... | |
libgcj-test.spec.in | Loading commit data... | |
libgcj.pc.in | Loading commit data... | |
libgcj.spec.in | Loading commit data... | |
libtool-version | Loading commit data... | |
mauve-libgcj | Loading commit data... | |
no-threads.cc | Loading commit data... | |
nogc.cc | Loading commit data... | |
pkg.m4 | Loading commit data... | |
posix-threads.cc | Loading commit data... | |
posix.cc | Loading commit data... | |
prims.cc | Loading commit data... | |
resolve.cc | Loading commit data... | |
verify.cc | Loading commit data... | |
win32-threads.cc | Loading commit data... | |
win32.cc | Loading commit data... |