private void DetectOffsets() { for (int SOFF = 0; SOFF < Offsets.Length; SOFF++) { byte[] offset = BitConverter.GetBytes(Offsets[SOFF]); for (int i = 0x50; i < Pos; i++) { if (EqualsAt(offset, Script, i)) { int[] Arr = null; if (StrOffsets.Keys.Contains(SOFF)) { Arr = StrOffsets[SOFF]; } else { Arr = new int[0]; } int[] NewArr = new int[Arr.Length + 1]; Arr.CopyTo(NewArr, 0); NewArr[Arr.Length] = i; StrOffsets[SOFF] = NewArr; } } } }
public void ShowMax() { Time[] time = new Time[Arr.Length]; Arr.CopyTo(time, 0); Array.Sort(time); Console.WriteLine($"{time[time.Length - 1]}"); }
public void ConcatWith(ref int[] value) { var toRet = new int[value.Length + this.Size]; value.CopyTo(toRet, 0); Arr.CopyTo(toRet, value.Length); value = toRet; }