// Token: 0x06000164 RID: 356 RVA: 0x00008798 File Offset: 0x00006998 public static void ArrayInsert <T>(ref T[] array, ref int arraySize, int position, ref T value) { arraySize++; if (arraySize > array.Length) { Array.Resize <T>(ref array, arraySize); } HGArrayUtilities.ArrayInsertNoResize <T>(array, arraySize, position, ref value); }
// Token: 0x0600009C RID: 156 RVA: 0x000050D4 File Offset: 0x000032D4 public bool Push(float t) { float num = t - this.window; if (t < this.newestTime) { this.lastValidCount = this.timestamps.Length; } int num2 = this.lastValidCount - 1; while (num2 >= 0 && num > this.timestamps[num2]) { this.lastValidCount--; num2--; } int num3 = this.FindInsertionPosition(t); if (num3 < this.timestamps.Length) { this.lastValidCount++; HGArrayUtilities.ArrayInsertNoResize <float>(this.timestamps, this.lastValidCount, num3, ref t); } return(this.lastValidCount == this.requirement); }