53 |
this.offset = bb.position(); |
this.offset = bb.position(); |
54 |
this.readOnly = bb.isReadOnly(); |
this.readOnly = bb.isReadOnly(); |
55 |
this.endian = bb.order(); |
this.endian = bb.order(); |
56 |
|
if (bb.isDirect()) |
57 |
|
this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset); |
58 |
} |
} |
59 |
|
|
60 |
public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, |
public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, |
66 |
this.offset = offset; |
this.offset = offset; |
67 |
this.readOnly = readOnly; |
this.readOnly = readOnly; |
68 |
this.endian = endian; |
this.endian = endian; |
69 |
|
if (bb.isDirect()) |
70 |
|
this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset); |
71 |
} |
} |
72 |
|
|
73 |
/** |
/** |
120 |
position (count); |
position (count); |
121 |
limit (capacity ()); |
limit (capacity ()); |
122 |
} |
} |
123 |
|
else |
124 |
|
{ |
125 |
|
position(limit()); |
126 |
|
limit(capacity()); |
127 |
|
} |
128 |
return this; |
return this; |
129 |
} |
} |
130 |
|
|