Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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;
 }