Methods Summary |
---|
public java.nio.ShortBuffer | asReadOnlyBuffer()
return duplicate();
|
public java.nio.ShortBuffer | compact()
throw new ReadOnlyBufferException();
|
public java.nio.ShortBuffer | duplicate()
return new ByteBufferAsShortBufferRL(bb,
this.markValue(),
this.position(),
this.limit(),
this.capacity(),
offset);
|
public boolean | isDirect()
return bb.isDirect();
|
public boolean | isReadOnly()
return true;
|
public java.nio.ByteOrder | order()
return ByteOrder.LITTLE_ENDIAN;
|
public java.nio.ShortBuffer | put(short x)
throw new ReadOnlyBufferException();
|
public java.nio.ShortBuffer | put(int i, short x)
throw new ReadOnlyBufferException();
|
public java.nio.ShortBuffer | slice()
int pos = this.position();
int lim = this.limit();
assert (pos <= lim);
int rem = (pos <= lim ? lim - pos : 0);
int off = (pos << 1) + offset;
assert (off >= 0);
return new ByteBufferAsShortBufferRL(bb, -1, 0, rem, rem, off);
|