internal static ReadOnlyCharArrayBuffer Copy(CharArrayBuffer other, int markOfOther) { ReadOnlyCharArrayBuffer buf = new ReadOnlyCharArrayBuffer(other .Capacity, other.backingArray, other.offset); buf.limit = other.Limit; buf.position = other.Position; buf.mark = markOfOther; return(buf); }
public override CharBuffer AsReadOnlyBuffer() { return(ReadOnlyCharArrayBuffer.Copy(this, mark)); }