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 |
/** |
/** |