Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 56) sorted by relevance

123

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Storage/
DLBABackend.cs64 file.Seek((long)blockSize * startingBlock, SeekOrigin.Begin); in Read()
65 return file.ReadBytes(bytesToRead); in Read()
77 file.Seek((long)blockSize * startingBlock, SeekOrigin.Begin); in Write()
78 file.Write(data, 0, data.Length); in Write()
83 if(file != null) in Dispose()
85 file.Dispose(); in Dispose()
96 if(file != null) in Touch()
111file = new SerializableStreamView(new FileStream(underlyingFile, FileMode.OpenOrCreate), size); in Touch()
120 private SerializableStreamView file; field in Antmicro.Renode.Storage.LBABackend
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Sound/
DPCMEncoder.cs63 file.Write(data, 0, data.Length); in FlushBuffer()
64 file.Flush(); in FlushBuffer()
88 if(file != null)
90 file.Dispose();
91 file = null;
96 file = File.OpenWrite(value);
111 private FileStream file; field in Antmicro.Renode.Sound.PCMEncoder
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SD/
DSDCardExtensions.cs17 …public static void SdCardFromFile(this IMachine machine, string file, IPeripheralRegister<Deprecat… in SdCardFromFile() argument
19 var card = new DeprecatedSDCard(file, size, persistent); in SdCardFromFile()
24 …public static void SdCardFromFile(this IMachine machine, string file, IPeripheralRegister<SDCard, … in SdCardFromFile() argument
26 var card = new SDCard(file, size, persistent); in SdCardFromFile()
31 …public static void SdCardFromFile(this IMachine machine, string file, IPeripheralRegister<ISPIPeri… in SdCardFromFile() argument
33 var card = new SDCard(file, size, persistent, spiMode: true); in SdCardFromFile()
38 …public static void SdCardFromFile(this IMachine machine, string file, IPeripheralRegister<ISPIPeri… in SdCardFromFile() argument
40 var card = new SDCard(file, size, persistent, spiMode: true); in SdCardFromFile()
DDeprecatedSDCard.cs33 file = new SerializableStreamView(new FileStream(imageFile, FileMode.OpenOrCreate)); in DeprecatedSDCard()
36 CardSize = cardSize ?? file.Length; in DeprecatedSDCard()
67 file.Dispose(); in Dispose()
170 file.Seek(offset, SeekOrigin.Begin); in ReadData()
172 return file.ReadBytes(size); in ReadData()
177 file.Seek(offset, SeekOrigin.Begin); in WriteData()
178 file.Write(data, 0, size); in WriteData()
191 private readonly SerializableStreamView file; field in Antmicro.Renode.Peripherals.SD.DeprecatedSDCard
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Commands/
DDisplayImageCommand.cs67 using(var file = new FileStream(pathToImage, FileMode.Open)) in Run()
69 if(!CheckFormat(file)) in Run()
75 writer.WriteRaw(InlineImage.Encode(file)); in Run()
79 private static bool CheckFormat(Stream file) in CheckFormat() argument
82 file.Seek(0, SeekOrigin.Begin); in CheckFormat()
83 file.Read(head, 0, 8); in CheckFormat()
84 file.Seek(0, SeekOrigin.Begin); in CheckFormat()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DAdHocCompilerTests.cs28 Assert.DoesNotThrow(() => { file = adhoc.Compile(extension); }); in ShouldNotThrowOnEmptyFile()
29 Assert.IsTrue(manager.ScanFile(file)); in ShouldNotThrowOnEmptyFile()
38 Assert.DoesNotThrow(() => { file = adhoc.Compile(extension); }); in ShouldCompileCsFile()
39 Assert.IsTrue(manager.ScanFile(file)); in ShouldCompileCsFile()
49 private string file; field in Antmicro.Renode.Utilities.AdHocCompilerTests
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DPosixFileLocker.cs20 file = fileToLock; in PosixFileLocker()
24 throw new InvalidOperationException("File {0} not locked.".FormatWith(file)); in PosixFileLocker()
32 throw new InvalidOperationException("File {0} not unlocked.".FormatWith(file)); in Dispose()
56 private readonly string file; field in Antmicro.Renode.Utilities.PosixFileLocker
DVmemReader.cs21 public VmemReader(ReadFilePath file) in VmemReader() argument
23 this.file = file; in VmemReader()
53 foreach(var line in File.ReadLines(file)) in GetRawEnumerable()
136 private readonly string file; field in Antmicro.Renode.Utilities.VmemReader
DWindowsFileLocker.cs25file = File.Open(fileToLock, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None); in WindowsFileLocker()
45 file.Close(); in Dispose()
56 private readonly FileStream file; field in Antmicro.Renode.Utilities.WindowsFileLocker
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DBinaryFingerprint.cs17 public BinaryFingerprint(string file) in BinaryFingerprint() argument
20 using(var stream = File.OpenRead(file)) in BinaryFingerprint()
25 FileName = Path.GetFullPath(file); in BinaryFingerprint()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Common/
DRegisterEnumParser.tt6 // This file is licensed under the MIT License.
17 /* This file is automatically generated. Do not modify it manually! All changes should be made in `…
20 // * file easy usable in other T4 templates
24 // and used by `RegisterTemplate.tt` and by this file.
26 …// This file simply reads content of `RegisterEnumParserContent.tt` and, with simple transformatio…
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm64/
DARMv8RRegisters.tt5 // This file is licensed under the MIT License.
10 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
17 <#@ include file="../Common/RegisterTemplate.tt" #>
DARMv8ARegisters.tt5 // This file is licensed under the MIT License.
10 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
25 <#@ include file="../Common/RegisterTemplate.tt" #>
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Xtensa/
DXtensaRegisters.tt5 // This file is licensed under the MIT License.
10 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
20 <#@ include file="../Common/RegisterTemplate.tt" #>
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/X86/
DX86Registers.tt6 // This file is licensed under the MIT License.
11 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
20 <#@ include file="../Common/RegisterTemplate.tt" #>
DX86_64Registers.tt5 // This file is licensed under the MIT License.
10 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
23 <#@ include file="../Common/RegisterTemplate.tt" #>
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm/
DArmRegisters.tt6 // This file is licensed under the MIT License.
11 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
21 <#@ include file="../Common/RegisterTemplate.tt" #>
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DRiscvOpcodesParser.cs21 public static void EnableRiscvOpcodesCounting(this BaseRiscV cpu, ReadFilePath file) in EnableRiscvOpcodesCounting() argument
23 foreach(var x in RiscVOpcodesParser.Parse(file)) in EnableRiscvOpcodesCounting()
42 … if(!assembly.TryFromResourceToTemporaryFile($"{ResourceNamePrefix}.{name}", out var file)) in EnableRiscvOpcodesCountingFromEmbeddedResource()
47 cpu.EnableRiscvOpcodesCounting(file); in EnableRiscvOpcodesCountingFromEmbeddedResource()
80 if(!assembly.TryFromResourceToTemporaryFile(resourceName, out var file)) in EnableRiscvOpcodesCounting()
85 cpu.EnableRiscvOpcodesCounting(file); in EnableRiscvOpcodesCounting()
120 public static IEnumerable<Tuple<string, string>> Parse(string file) in Parse() argument
126 foreach(var line in File.ReadLines(file).Select(x => RemoveComments(x))) in Parse()
DRiscV32Registers.tt5 // This file is licensed under the MIT License.
10 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
46 <#@ include file="../Common/RegisterTemplate.tt" #>
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/PowerPC/
DPowerPc64Registers.tt6 // This file is licensed under the MIT License.
11 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
27 <#@ include file="../Common/RegisterTemplate.tt" #>
DPowerPcRegisters.tt6 // This file is licensed under the MIT License.
11 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
27 <#@ include file="../Common/RegisterTemplate.tt" #>
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm-M/
DCortexMRegisters.tt6 // This file is licensed under the MIT License.
11 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
28 <#@ include file="../Common/RegisterTemplate.tt" #>
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Sparc/
DSparcRegisters.tt6 // This file is licensed under the MIT License.
11 <#@ include file="../Common/RegisterTemplateDefinitions.tt" #>
30 <#@ include file="../Common/RegisterTemplate.tt" #>
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/GuestProfiling/ProtoBuf/
DREADME.txt6 Protobuf message definitions are created form the 'trace_packet.proto' file. This file is a
11 When using protobuf-net this file can be converted to a C# class using: https://protogen.marcgravel…
14 The 'TracePacket.cs' file was created using this converter and this class is the only one that is r…
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/USBDeprecated/
DMassStorageExtensions.cs16 …public static void PendriveFromFile(this IMachine machine, string file, string name, IPeripheralRe… in PendriveFromFile() argument
20 var pendrive = new MassStorage(file, persistent: persistent); in PendriveFromFile()

123