public DoubleBuffer asReadOnlyBuffer() {DoubleToByteBufferAdapter buf = new DoubleToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}

public override java.nio.DoubleBuffer asReadOnlyBuffer(){java.nio.DoubleToByteBufferAdapter buf = new java.nio.DoubleToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}
