public static void FallbackBlockWrite(Tag tag, Tag.MemoryBank memoryBank, ref IEnumerable <char> data, int offset = 0) { int index = 0; IEnumerator <char> enumerator = data.GetEnumerator(); while (enumerator.MoveNext()) { char dataPiece = enumerator.Current; tag.Execute(new WriteCommand(memoryBank, ref dataPiece, offset + index)); index++; } }
public MemoryBankStream(Tag tag, Tag.MemoryBank memoryBank) { this.tag = tag; this.memoryBank = memoryBank; }