Methods Summary |
---|
public void | addressValidityCheck()
if (byteBuffer instanceof DirectBuffer) {
((DirectBuffer)byteBuffer).addressValidityCheck();
} else {
assert false : byteBuffer;
}
|
public java.nio.LongBuffer | asReadOnlyBuffer()
LongToByteBufferAdapter buf = new LongToByteBufferAdapter(byteBuffer
.asReadOnlyBuffer());
buf.limit = limit;
buf.position = position;
buf.mark = mark;
return buf;
|
public java.nio.LongBuffer | compact()
if (byteBuffer.isReadOnly()) {
throw new ReadOnlyBufferException();
}
byteBuffer.limit(limit << 3);
byteBuffer.position(position << 3);
byteBuffer.compact();
byteBuffer.clear();
position = limit - position;
limit = capacity;
mark = UNSET_MARK;
return this;
|
public java.nio.LongBuffer | duplicate()
LongToByteBufferAdapter buf = new LongToByteBufferAdapter(byteBuffer
.duplicate());
buf.limit = limit;
buf.position = position;
buf.mark = mark;
return buf;
|
public void | free()
if (byteBuffer instanceof DirectBuffer) {
((DirectBuffer)byteBuffer).free();
} else {
assert false : byteBuffer;
}
|
public long | get()
if (position == limit) {
throw new BufferUnderflowException();
}
return byteBuffer.getLong(position++ << 3);
|
public long | get(int index)
if (index < 0 || index >= limit) {
throw new IndexOutOfBoundsException();
}
return byteBuffer.getLong(index << 3);
|
public org.apache.harmony.luni.platform.PlatformAddress | getBaseAddress()
if (byteBuffer instanceof DirectBuffer) {
return ((DirectBuffer)byteBuffer).getBaseAddress();
} else {
assert false : byteBuffer;
return null;
}
|
public int | getByteCapacity()
if (byteBuffer instanceof DirectBuffer) {
return ((DirectBuffer)byteBuffer).getByteCapacity();
} else {
assert false : byteBuffer;
return -1;
}
|
public org.apache.harmony.luni.platform.PlatformAddress | getEffectiveAddress()
if (byteBuffer instanceof DirectBuffer) {
return ((DirectBuffer)byteBuffer).getEffectiveAddress();
} else {
assert false : byteBuffer;
return null;
}
|
public boolean | isAddressValid()
if (byteBuffer instanceof DirectBuffer) {
return ((DirectBuffer)byteBuffer).isAddressValid();
} else {
assert false : byteBuffer;
return false;
}
|
public boolean | isDirect()
return byteBuffer.isDirect();
|
public boolean | isReadOnly()
return byteBuffer.isReadOnly();
|
public java.nio.ByteOrder | order()
return byteBuffer.order();
|
protected long[] | protectedArray()
throw new UnsupportedOperationException();
|
protected int | protectedArrayOffset()
throw new UnsupportedOperationException();
|
protected boolean | protectedHasArray()
return false;
|
public java.nio.LongBuffer | put(long c)
if (position == limit) {
throw new BufferOverflowException();
}
byteBuffer.putLong(position++ << 3, c);
return this;
|
public java.nio.LongBuffer | put(int index, long c)
if (index < 0 || index >= limit) {
throw new IndexOutOfBoundsException();
}
byteBuffer.putLong(index << 3, c);
return this;
|
public java.nio.LongBuffer | slice()
byteBuffer.limit(limit << 3);
byteBuffer.position(position << 3);
LongBuffer result = new LongToByteBufferAdapter(byteBuffer.slice());
byteBuffer.clear();
return result;
|
static java.nio.LongBuffer | wrap(java.nio.ByteBuffer byteBuffer)
return new LongToByteBufferAdapter(byteBuffer.slice());
|