예제 #1
0
        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);
        }
예제 #2
0
 public override Int32Buffer AsReadOnlyBuffer()
 {
     return(ReadOnlyInt32ArrayBuffer.Copy(this, mark));
 }