Methods Summary |
---|
public void | addressValidityCheck()
this.wrapped.addressValidityCheck();
|
public java.nio.CharBuffer | asCharBuffer()
return this.wrapped.asCharBuffer();
|
public java.nio.DoubleBuffer | asDoubleBuffer()
return this.wrapped.asDoubleBuffer();
|
public java.nio.FloatBuffer | asFloatBuffer()
return this.wrapped.asFloatBuffer();
|
public java.nio.IntBuffer | asIntBuffer()
return this.wrapped.asIntBuffer();
|
public java.nio.LongBuffer | asLongBuffer()
return this.wrapped.asLongBuffer();
|
public java.nio.ByteBuffer | asReadOnlyBuffer()
MappedByteBufferAdapter buf = new MappedByteBufferAdapter(this.wrapped
.asReadOnlyBuffer());
buf.limit = this.limit;
buf.position = this.position;
buf.mark = this.mark;
return buf;
|
public java.nio.ShortBuffer | asShortBuffer()
return this.wrapped.asShortBuffer();
|
public java.nio.ByteBuffer | compact()
if (this.wrapped.isReadOnly()) {
throw new ReadOnlyBufferException();
}
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.compact();
this.wrapped.clear();
this.position = this.limit - this.position;
this.limit = this.capacity;
this.mark = UNSET_MARK;
return this;
|
public java.nio.ByteBuffer | duplicate()
MappedByteBufferAdapter buf = new MappedByteBufferAdapter(this.wrapped
.duplicate());
buf.limit = this.limit;
buf.position = this.position;
buf.mark = this.mark;
return buf;
|
public void | free()
this.wrapped.free();
|
public byte | get()
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
byte result = this.wrapped.get();
this.position++;
return result;
|
public byte | get(int index)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
return this.wrapped.get(index);
|
public org.apache.harmony.luni.platform.PlatformAddress | getBaseAddress()
return this.wrapped.getBaseAddress();
|
public int | getByteCapacity()
return wrapped.getByteCapacity();
|
public char | getChar()
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
char result = this.wrapped.getChar();
this.position += CHAR_SIZE;
return result;
|
public char | getChar(int index)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
return this.wrapped.getChar(index);
|
public double | getDouble()
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
double result = this.wrapped.getDouble();
this.position += DOUBLE_SIZE;
return result;
|
public double | getDouble(int index)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
return this.wrapped.getDouble(index);
|
public org.apache.harmony.luni.platform.PlatformAddress | getEffectiveAddress()
return ((DirectBuffer) this.wrapped).getEffectiveAddress();
|
public float | getFloat()
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
float result = this.wrapped.getFloat();
this.position += FLOAT_SIZE;
return result;
|
public float | getFloat(int index)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
return this.wrapped.getFloat(index);
|
public int | getInt()
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
int result = this.wrapped.getInt();
this.position += INTEGER_SIZE;
return result;
|
public int | getInt(int index)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
return this.wrapped.getInt(index);
|
public long | getLong()
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
long result = this.wrapped.getLong();
this.position += LONG_SIZE;
return result;
|
public long | getLong(int index)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
return this.wrapped.getLong(index);
|
public short | getShort()
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
short result = this.wrapped.getShort();
this.position += SHORT_SIZE;
return result;
|
public short | getShort(int index)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
return this.wrapped.getShort(index);
|
public boolean | isAddressValid()
return this.wrapped.isAddressValid();
|
public boolean | isDirect()
return true;
|
public boolean | isReadOnly()
return this.wrapped.isReadOnly();
|
java.nio.ByteBuffer | orderImpl(java.nio.ByteOrder byteOrder)
super.orderImpl(byteOrder);
return this.wrapped.order(byteOrder);
|
byte[] | protectedArray()
return this.wrapped.protectedArray();
|
int | protectedArrayOffset()
return this.wrapped.protectedArrayOffset();
|
boolean | protectedHasArray()
return this.wrapped.protectedHasArray();
|
public java.nio.ByteBuffer | put(byte b)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.put(b);
this.position++;
return this;
|
public java.nio.ByteBuffer | put(byte[] src, int off, int len)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.put(src, off, len);
this.position += len;
return this;
|
public java.nio.ByteBuffer | put(int index, byte b)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.put(index, b);
return this;
|
public java.nio.ByteBuffer | putChar(char value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putChar(value);
this.position += CHAR_SIZE;
return this;
|
public java.nio.ByteBuffer | putChar(int index, char value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putChar(index, value);
return this;
|
public java.nio.ByteBuffer | putDouble(double value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putDouble(value);
this.position += DOUBLE_SIZE;
return this;
|
public java.nio.ByteBuffer | putDouble(int index, double value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putDouble(index, value);
return this;
|
public java.nio.ByteBuffer | putFloat(float value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putFloat(value);
this.position += FLOAT_SIZE;
return this;
|
public java.nio.ByteBuffer | putFloat(int index, float value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putFloat(index, value);
return this;
|
public java.nio.ByteBuffer | putInt(int index, int value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putInt(index, value);
return this;
|
public java.nio.ByteBuffer | putInt(int value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putInt(value);
this.position += INTEGER_SIZE;
return this;
|
public java.nio.ByteBuffer | putLong(int index, long value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putLong(index, value);
return this;
|
public java.nio.ByteBuffer | putLong(long value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putLong(value);
this.position += LONG_SIZE;
return this;
|
public java.nio.ByteBuffer | putShort(int index, short value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putShort(index, value);
return this;
|
public java.nio.ByteBuffer | putShort(short value)
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
this.wrapped.putShort(value);
this.position += SHORT_SIZE;
return this;
|
public java.nio.ByteBuffer | slice()
this.wrapped.limit(this.limit);
this.wrapped.position(this.position);
MappedByteBufferAdapter result = new MappedByteBufferAdapter(
this.wrapped.slice());
this.wrapped.clear();
return result;
|