public IntBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}

public IntBuffer compact ( ) { if ( byteBuffer . isReadOnly ( ) ) { throw new ReadOnlyBufferException ( ) ; } byteBuffer . limit ( limit * SizeOf . INT ) ; byteBuffer . position ( position * SizeOf . INT ) ; byteBuffer . compact ( ) ; byteBuffer . clear ( ) ; position = limit - position ; limit = capacity ; mark = UNSET_MARK ; return this ; }
public override java.nio.IntBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
