internal static ReadOnlyInt32ArrayBuffer Copy(Int32ArrayBuffer other, int markOfOther) { ReadOnlyInt32ArrayBuffer buf = new ReadOnlyInt32ArrayBuffer(other .Capacity, other.backingArray, other.offset); buf.limit = other.Limit; buf.position = other.Position; buf.mark = markOfOther; return(buf); }
public override Int32Buffer AsReadOnlyBuffer() { return(ReadOnlyInt32ArrayBuffer.Copy(this, mark)); }