summaryrefslogtreecommitdiff
path: root/include/java_nio_DirectByteBufferImpl.h
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-02-11 19:05:14 +0000
committerMichael Koch <konqueror@gmx.de>2004-02-11 19:05:14 +0000
commita2b44a6309c2a4c907cc1f54743176ba1b36d75b (patch)
treecaa2dec75d5ff996f3ddc8161699c5dd80779c06 /include/java_nio_DirectByteBufferImpl.h
parent9c9032c29534a3a1d5bfe8a7379eb4311d5412f2 (diff)
downloadclasspath-a2b44a6309c2a4c907cc1f54743176ba1b36d75b.tar.gz
2004-02-11 Per Bothner <per@bothner.com>
* 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 <konqueror@gmx.de> * include/java_nio_DirectByteBufferImpl.h: Regenerated. * native/jni/java-nio/java_nio_DirectByteBufferImpl.c (shiftDown): New method.
Diffstat (limited to 'include/java_nio_DirectByteBufferImpl.h')
-rw-r--r--include/java_nio_DirectByteBufferImpl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/java_nio_DirectByteBufferImpl.h b/include/java_nio_DirectByteBufferImpl.h
index 7eeb27842..1249b4f1c 100644
--- a/include/java_nio_DirectByteBufferImpl.h
+++ b/include/java_nio_DirectByteBufferImpl.h
@@ -14,6 +14,7 @@ extern JNIEXPORT jobject JNICALL Java_java_nio_DirectByteBufferImpl_allocateImpl
extern JNIEXPORT void JNICALL Java_java_nio_DirectByteBufferImpl_freeImpl (JNIEnv *env, jclass, jobject);
extern JNIEXPORT jbyte JNICALL Java_java_nio_DirectByteBufferImpl_getImpl (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_java_nio_DirectByteBufferImpl_putImpl (JNIEnv *env, jobject, jint, jbyte);
+extern JNIEXPORT void JNICALL Java_java_nio_DirectByteBufferImpl_shiftDown (JNIEnv *env, jobject, jint, jint, jint);
#ifdef __cplusplus
}