1 // 2 // Copyright (c) 2010-2021 Antmicro 3 // Copyright (c) 2011-2015 Realtime Embedded 4 // 5 // This file is licensed under the MIT License. 6 // Full license text is available in 'licenses/MIT.txt'. 7 // 8 using AntShell.Terminal; 9 10 namespace Antmicro.Renode.UI 11 { 12 public class DummyIOSource : IPassiveIOSource 13 { CancelRead()14 public void CancelRead() 15 { 16 } 17 Dispose()18 public void Dispose() 19 { 20 } 21 Flush()22 public void Flush() 23 { 24 } 25 TryPeek(out int value)26 public bool TryPeek(out int value) 27 { 28 value = 0; 29 return true; 30 } 31 Read()32 public int Read() 33 { 34 return 0; 35 } 36 Write(byte b)37 public void Write(byte b) 38 { 39 } 40 } 41 } 42