38 |
|
|
39 |
package java.nio; |
package java.nio; |
40 |
|
|
41 |
import gnu.classpath.RawData; |
import gnu.classpath.Pointer; |
42 |
|
|
43 |
abstract class DirectByteBufferImpl extends ByteBuffer |
abstract class DirectByteBufferImpl extends ByteBuffer |
44 |
{ |
{ |
59 |
|
|
60 |
static final class ReadOnly extends DirectByteBufferImpl |
static final class ReadOnly extends DirectByteBufferImpl |
61 |
{ |
{ |
62 |
ReadOnly(Object owner, RawData address, |
ReadOnly(Object owner, Pointer address, |
63 |
int capacity, int limit, |
int capacity, int limit, |
64 |
int position) |
int position) |
65 |
{ |
{ |
89 |
super(capacity); |
super(capacity); |
90 |
} |
} |
91 |
|
|
92 |
ReadWrite(Object owner, RawData address, |
ReadWrite(Object owner, Pointer address, |
93 |
int capacity, int limit, |
int capacity, int limit, |
94 |
int position) |
int position) |
95 |
{ |
{ |
109 |
this.address = VMDirectByteBuffer.allocate(capacity); |
this.address = VMDirectByteBuffer.allocate(capacity); |
110 |
} |
} |
111 |
|
|
112 |
DirectByteBufferImpl(Object owner, RawData address, |
DirectByteBufferImpl(Object owner, Pointer address, |
113 |
int capacity, int limit, |
int capacity, int limit, |
114 |
int position) |
int position) |
115 |
{ |
{ |