public virtual void AddAll(Link link) { int n = link.Length; reserveSpace(n); if (link is PArray) { PArray src = (PArray)link; for (int i = 0, j = used; i < n; i++, j++) { arr[j] = src.GetOid(i); } } else { for (int i = 0, j = used; i < n; i++, j++) { arr[j] = storage.MakePersistent(link.GetRaw(i)); } } used += n; }