Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public override CharBuffer AsReadOnlyBuffer()
 {
     return(ReadOnlyCharArrayBuffer.Copy(this, mark));
 }