/// <summary> /// Create <see cref="Patcher"/> from ALV data. /// </summary> /// <param name="rawBytes">ALV raw bytes</param> /// <returns><see cref="Patcher"/>.</returns> public static Patcher FromAlv(byte[] rawBytes) { var list = new List <AlvReader.Entry>(); var alvReader = new AlvReader(rawBytes); foreach (var entry in alvReader) { if (IsAddressRelevant(entry.Address)) { list.Add(entry); } } var patcher = new Patcher(); patcher._data = list.ToArray(); return(patcher); }
public Enumerator(AlvReader reader) => _reader = reader;