Lines Matching defs:array

60         private T[] array = EmptyArray;

77 if (array != EmptyArray)
79 clone.array = (T[])array.Clone();
80 IDeepCloneable<T>[] cloneableArray = clone.array as IDeepCloneable<T>[];
85 clone.array[i] = cloneableArray[i].Clone();
145 array[count++] = reader(ref ctx);
200 size += sizeCalculator(array[i]);
215 tmp += calculator(array[i]);
267 writer(ref ctx, array[i]);
277 writer(ref ctx, array[i]);
287 /// Gets and sets the capacity of the RepeatedField's internal array. WHen set, the internal array is reallocated to the given capacity.
292 get { return array.Length; }
301 if (value >= 0 && value != array.Length)
308 // May increase the size of the internal array, but will never shrink it.
311 if (array.Length < size)
314 int newSize = Math.Max(array.Length * 2, size);
319 // Sets the internal array to an exact size.
322 if (size != array.Length)
325 Array.Copy(array, 0, tmp, 0, count);
326 array = tmp;
338 array[count++] = item;
346 array = EmptyArray;
361 /// Copies this collection to the given array.
363 /// <param name="array">The array to copy to.</param>
364 /// <param name="arrayIndex">The first index of the array to copy to.</param>
365 public void CopyTo(T[] array, int arrayIndex)
367 Array.Copy(this.array, 0, array, arrayIndex, count);
382 Array.Copy(array, index + 1, array, index, count - index - 1);
384 array[count] = default(T);
412 Array.Copy(otherRepeatedField.array, 0, array, count, otherRepeatedField.count);
418 // just once and ask the collection to copy itself into the array.
442 collection.CopyTo(array, count);
479 yield return array[i];
517 hash = hash * 31 + array[i].GetHashCode();
544 if (!comparer.Equals(array[i], other.array[i]))
564 if (comparer.Equals(array[i], item))
585 Array.Copy(array, index, array, index + 1, count - index);
586 array[index] = item;
600 Array.Copy(array, index + 1, array, index, count - index - 1);
602 array[count] = default(T);
632 return array[index];
641 array[index] = value;
648 void ICollection.CopyTo(Array array, int index)
650 Array.Copy(this.array, 0, array, index, count);