Methods Summary |
---|
public void | addressValidityCheck()
if (byteBuffer instanceof DirectBuffer) {
((DirectBuffer)byteBuffer).addressValidityCheck();
} else {
assert false : byteBuffer;
}
|
public java.nio.DoubleBuffer | asReadOnlyBuffer()
DoubleToByteBufferAdapter buf = new DoubleToByteBufferAdapter(
byteBuffer.asReadOnlyBuffer());
buf.limit = limit;
buf.position = position;
buf.mark = mark;
return buf;
|
public java.nio.DoubleBuffer | 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.DoubleBuffer | duplicate()
DoubleToByteBufferAdapter buf = new DoubleToByteBufferAdapter(
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 double | get()
if (position == limit) {
throw new BufferUnderflowException();
}
return byteBuffer.getDouble(position++ << 3);
|
public double | get(int index)
if (index < 0 || index >= limit) {
throw new IndexOutOfBoundsException();
}
return byteBuffer.getDouble(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 double[] | protectedArray()
throw new UnsupportedOperationException();
|
protected int | protectedArrayOffset()
throw new UnsupportedOperationException();
|
protected boolean | protectedHasArray()
return false;
|
public java.nio.DoubleBuffer | put(double c)
if (position == limit) {
throw new BufferOverflowException();
}
byteBuffer.putDouble(position++ << 3, c);
return this;
|
public java.nio.DoubleBuffer | put(int index, double c)
if (index < 0 || index >= limit) {
throw new IndexOutOfBoundsException();
}
byteBuffer.putDouble(index << 3, c);
return this;
|
public java.nio.DoubleBuffer | slice()
byteBuffer.limit(limit << 3);
byteBuffer.position(position << 3);
DoubleBuffer result = new DoubleToByteBufferAdapter(byteBuffer.slice());
byteBuffer.clear();
return result;
|
static java.nio.DoubleBuffer | wrap(java.nio.ByteBuffer byteBuffer)
return new DoubleToByteBufferAdapter(byteBuffer.slice());
|