[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Patch: java.nio buffer fixes
From: |
Michael Koch |
Subject: |
FYI: Patch: java.nio buffer fixes |
Date: |
Wed, 11 Feb 2004 20:10:27 +0100 |
User-agent: |
KMail/1.5.4 |
Hi list,
I commited the attached patch to merge the latest NIO fixes to
classpath.
Michael
2004-02-11 Per Bothner <address@hidden>
* java/nio/ByteBuffer.java (shiftDown): New helper method.
* java/nio/ByteBufferImpl.java (compact): Use new shiftDown method.
* sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers.
Pass ByteOrder parameter to most methods, since the underlying
ByteBuffer's order isn't always what we should use.
* java/nio/ByteBufferImpl.java: Pass byte-order various places.
* java/nio/DirectByteBufferImpl.java: Likewise.
Use ByteBufferHelper methods.
* java/nio/MappedByteBufferImpl.java: Likewise.
(compact): Use shiftDown.
* java/nio/CharViewBufferImpl.java (<init>): Pass byte-order.
(get, put): Use ByteBufferHelper.
(compact): Use new shiftDown method.
(duplicate(boolean)): New helper method.
(duplicate, asReadOnlyBuffer): Use it.
(order): Return endian field.
* java/nio/DoubleViewBufferImpl.java: Likewise.
* java/nio/FloatViewBufferImpl.java: Likewise.
* java/nio/IntViewBufferImpl.java: Likewise.
* java/nio/LongViewBufferImpl.java: Likewise.
* java/nio/ShortViewBufferImpl.java: Likewise.
* java/nio/CharViewBufferImpl.java (subsequence): Redundant test.
* java/nio/DirectByteBufferImpl.java (shiftDown): New native method.
(compact): Re-implement using shiftDown.
2004-02-11 Michael Koch <address@hidden>
* include/java_nio_DirectByteBufferImpl.h: Regenerated.
* native/jni/java-nio/java_nio_DirectByteBufferImpl.c
(shiftDown): New method.
nio.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Patch: java.nio buffer fixes,
Michael Koch <=