Direct-X-Buffer.java.template revision 4352
#if[rw]
#else[rw]
implements DirectBuffer
#if[rw]
// NOTE: moved up to Buffer.java for speed in JNI GetDirectBufferAddress
return att;
private static class Deallocator
implements Runnable
private long address;
private long size;
private int capacity;
public void run() {
#end[byte]
#if[rw]
} catch (OutOfMemoryError x) {
#else[rw]
super(cap);
#if[rw]
#if[rw]
#else[rw]
#end[byte]
int off)
#if[rw]
#end[byte]
#else[rw]
this.markValue(),
this.position(),
this.limit(),
this.capacity(),
#if[rw]
this.markValue(),
this.position(),
this.limit(),
this.capacity(),
#else[rw]
return duplicate();
#if[rw]
public long address() {
return address;
private long ix(int i) {
#if[rw]
throw new BufferUnderflowException();
#end[!byte]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
if (src == this)
throw new IllegalArgumentException();
throw new BufferOverflowException();
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
throw new BufferOverflowException();
#end[!byte]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
discardMark();
#else[rw]
throw new ReadOnlyBufferException();
public boolean isDirect() {
public boolean isReadOnly() {
return {#if[rw]?false:true};
throw new IndexOutOfBoundsException();
} catch (StringIndexOutOfBoundsException x) {
throw new IndexOutOfBoundsException();
throw new IndexOutOfBoundsException();
capacity(),
offset);
#end[char]
#if[boS]
#if[boU]
#end[!byte]
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#end[byte]