internal static ReadOnlyCharArrayBuffer copy(CharArrayBuffer other, int markOfOther) { ReadOnlyCharArrayBuffer buf = new ReadOnlyCharArrayBuffer(other .capacity(), other.backingArray, other.offset); buf.limitJ = other.limit(); buf.positionJ = other.position(); buf.markJ = markOfOther; return(buf); }
internal static ReadOnlyCharArrayBuffer copy(CharArrayBuffer other, int markOfOther) { ReadOnlyCharArrayBuffer buf = new ReadOnlyCharArrayBuffer(other .capacity(), other.backingArray, other.offset); buf.limitJ = other.limit(); buf.positionJ = other.position(); buf.markJ = markOfOther; return buf; }
public override CharBuffer asReadOnlyBuffer() { return(ReadOnlyCharArrayBuffer.copy(this, markJ)); }