Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 public AsmContext(Patcher patcher, Symbols symbols)
 {
     this.Patcher = patcher;
     this.Symbols = symbols;
 }