static ReadWriteCharArrayBuffer copy(CharArrayBuffer other, int markOfOther) { ReadWriteCharArrayBuffer buf = new ReadWriteCharArrayBuffer(other .capacity(), other.backingArray, other.offset); buf.limitJ = other.limit(); buf.positionJ = other.position(); buf.markJ = markOfOther; return(buf); }
static ReadWriteCharArrayBuffer copy(CharArrayBuffer other, int markOfOther) { ReadWriteCharArrayBuffer buf = new ReadWriteCharArrayBuffer(other .capacity(), other.backingArray, other.offset); buf.limitJ = other.limit(); buf.positionJ = other.position(); buf.markJ = markOfOther; return buf; }