Methods Summary |
---|
byte | _get(int i) // package-private
return hb[i];
|
void | _put(int i, byte b) // package-private
throw new ReadOnlyBufferException();
|
public java.nio.CharBuffer | asCharBuffer()
int size = this.remaining() >> 1;
int off = offset + position();
return (bigEndian
? (CharBuffer)(new ByteBufferAsCharBufferRB(this,
-1,
0,
size,
size,
off))
: (CharBuffer)(new ByteBufferAsCharBufferRL(this,
-1,
0,
size,
size,
off)));
|
public java.nio.DoubleBuffer | asDoubleBuffer()
int size = this.remaining() >> 3;
int off = offset + position();
return (bigEndian
? (DoubleBuffer)(new ByteBufferAsDoubleBufferRB(this,
-1,
0,
size,
size,
off))
: (DoubleBuffer)(new ByteBufferAsDoubleBufferRL(this,
-1,
0,
size,
size,
off)));
|
public java.nio.FloatBuffer | asFloatBuffer()
int size = this.remaining() >> 2;
int off = offset + position();
return (bigEndian
? (FloatBuffer)(new ByteBufferAsFloatBufferRB(this,
-1,
0,
size,
size,
off))
: (FloatBuffer)(new ByteBufferAsFloatBufferRL(this,
-1,
0,
size,
size,
off)));
|
public java.nio.IntBuffer | asIntBuffer()
int size = this.remaining() >> 2;
int off = offset + position();
return (bigEndian
? (IntBuffer)(new ByteBufferAsIntBufferRB(this,
-1,
0,
size,
size,
off))
: (IntBuffer)(new ByteBufferAsIntBufferRL(this,
-1,
0,
size,
size,
off)));
|
public java.nio.LongBuffer | asLongBuffer()
int size = this.remaining() >> 3;
int off = offset + position();
return (bigEndian
? (LongBuffer)(new ByteBufferAsLongBufferRB(this,
-1,
0,
size,
size,
off))
: (LongBuffer)(new ByteBufferAsLongBufferRL(this,
-1,
0,
size,
size,
off)));
|
public java.nio.ByteBuffer | asReadOnlyBuffer()
return duplicate();
|
public java.nio.ShortBuffer | asShortBuffer()
int size = this.remaining() >> 1;
int off = offset + position();
return (bigEndian
? (ShortBuffer)(new ByteBufferAsShortBufferRB(this,
-1,
0,
size,
size,
off))
: (ShortBuffer)(new ByteBufferAsShortBufferRL(this,
-1,
0,
size,
size,
off)));
|
public java.nio.ByteBuffer | compact()
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | duplicate()
return new HeapByteBufferR(hb,
this.markValue(),
this.position(),
this.limit(),
this.capacity(),
offset);
|
public boolean | isReadOnly()
return true;
|
public java.nio.ByteBuffer | put(byte[] src, int offset, int length)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | put(java.nio.ByteBuffer src)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | put(byte x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | put(int i, byte x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putChar(char x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putChar(int i, char x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putDouble(double x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putDouble(int i, double x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putFloat(float x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putFloat(int i, float x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putInt(int x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putInt(int i, int x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putLong(long x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putLong(int i, long x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putShort(short x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putShort(int i, short x)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | slice()
return new HeapByteBufferR(hb,
-1,
0,
this.remaining(),
this.remaining(),
this.position() + offset);
|