2003-06-17 Michael Koch <konqueror@gmx.de>
* java/nio/DirectByteBufferImpl.java (address): Made package private. (DirectByteBufferImpl): New constructor. * java/nio/natDirectByteBufferImpl.cc (allocateImpl): Moved to java.nio namespace, implemented. (freeImpl): Likewise. (getImpl): Likewise. (putImpl): Likewise. * jni.cc (_Jv_JNI_NewDirectByteBuffer): Implemented. (_Jv_JNI_GetDirectBufferAddress): Implemented. (_Jv_JNI_GetDirectBufferCapacity): Implemented. From-SVN: r68105
This commit is contained in:
parent
67f63f32d5
commit
6f3aed57fb
4 changed files with 49 additions and 23 deletions
|
@ -42,9 +42,14 @@ import gnu.gcj.RawData;
|
|||
|
||||
public class DirectByteBufferImpl extends ByteBuffer
|
||||
{
|
||||
private RawData address;
|
||||
RawData address;
|
||||
private int offset;
|
||||
private boolean readOnly;
|
||||
|
||||
public DirectByteBufferImpl (RawData address, long len)
|
||||
{
|
||||
this (address, 0, (int) len, (int) len, 0, -1, false);
|
||||
}
|
||||
|
||||
public DirectByteBufferImpl (RawData address, int offset, int capacity,
|
||||
int limit, int position, int mark,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue