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
This commit is contained in:
parent
16df8078b8
commit
7ef527365f
5 changed files with 38 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue