diff options
author | Michael Koch <konqueror@gmx.de> | 2004-11-24 12:19:42 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-11-24 12:19:42 +0000 |
commit | 7ef527365f5dbb300e73ff854fd0f90e90af3bed (patch) | |
tree | 729b8f856369680c08ca2aeda398277d212dfe4e /libjava/java | |
parent | 16df8078b8ea2cf3ce37f47e62cdc66c69fe6c70 (diff) | |
download | gcc-7ef527365f5dbb300e73ff854fd0f90e90af3bed.tar.gz |
2004-11-24 Michael Koch <konqueror@gmx.de>
* java/nio/DirectByteBufferImpl.java
(ReadWrite.ReadWrite): New constructor.
(DirectByteBufferImpl): Likewise.
* jni.cc (_Jv_JNI_NewDirectByteBuffer):
Use DirectByteBufferImpl.ReadWrite.
* Makefile.am:
Generate java/nio/DirectByteBufferImpl$ReadWrite.h.
* Makefile.in: Rgenerated.
From-SVN: r91150
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/nio/DirectByteBufferImpl.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libjava/java/nio/DirectByteBufferImpl.java b/libjava/java/nio/DirectByteBufferImpl.java index ab8cd6f7973..d73f090cdb7 100644 --- a/libjava/java/nio/DirectByteBufferImpl.java +++ b/libjava/java/nio/DirectByteBufferImpl.java @@ -89,6 +89,11 @@ abstract class DirectByteBufferImpl extends ByteBuffer super(capacity); } + ReadWrite(RawData address, int capacity) + { + super(address, capacity); + } + ReadWrite(Object owner, RawData address, int capacity, int limit, int position) @@ -109,6 +114,13 @@ abstract class DirectByteBufferImpl extends ByteBuffer this.address = VMDirectByteBuffer.allocate(capacity); } + DirectByteBufferImpl(RawData address, int capacity) + { + super(capacity, capacity, 0, -1); + this.owner = this; + this.address = address; + } + DirectByteBufferImpl(Object owner, RawData address, int capacity, int limit, int position) |