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;
 }
Example #3
0
 public override CharBuffer asReadOnlyBuffer()
 {
     return(ReadOnlyCharArrayBuffer.copy(this, markJ));
 }