Пример #1
0
        internal static ReadOnlyInt16ArrayBuffer Copy(Int16ArrayBuffer other, int markOfOther)
        {
            ReadOnlyInt16ArrayBuffer buf = new ReadOnlyInt16ArrayBuffer(other
                                                                        .Capacity, other.backingArray, other.offset);

            buf.limit    = other.Limit;
            buf.position = other.Position;
            buf.mark     = markOfOther;
            return(buf);
        }
Пример #2
0
 public override Int16Buffer AsReadOnlyBuffer()
 {
     return(ReadOnlyInt16ArrayBuffer.Copy(this, mark));
 }