Home | History | Annotate | Download | only in nio

Lines Matching defs:bb

32     protected final ByteBuffer bb;
36 ByteBufferAsLongBuffer(ByteBuffer bb,
40 this.bb = bb.duplicate();
41 this.isReadOnly = bb.isReadOnly;
42 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and
43 // HeapByteBuffer. We only have to initialize the field when bb is an instance of
49 if (bb instanceof DirectByteBuffer) {
50 this.address = bb.address + off;
52 this.bb.order(order);
64 return new ByteBufferAsLongBuffer(bb, -1, 0, rem, rem, off, order);
68 return new ByteBufferAsLongBuffer(bb,
78 return new ByteBufferAsLongBuffer(bb.asReadOnlyBuffer(),
96 return bb.getLongUnchecked(ix(checkIndex(i)));
103 bb.getUnchecked(ix(position), dst, offset, length);
117 bb.putLongUnchecked(ix(checkIndex(i)), x);
125 bb.putUnchecked(ix(position), src, offset, length);
138 if (!(bb instanceof DirectByteBuffer)) {
139 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 3);
150 return bb.isDirect();