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