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); }
public override Int16Buffer AsReadOnlyBuffer() { return(ReadOnlyInt16ArrayBuffer.Copy(this, mark)); }