Home
last modified time | relevance | path

Searched refs:HexStringToByteArray (Results 1 – 15 of 15) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DMiscTests.cs19 Assert.AreEqual(new byte[] {0x0a}, Misc.HexStringToByteArray("0a")); in ShouldGetBytesFromHexString()
22 Misc.HexStringToByteArray("abcdefABCDEF0123456789") in ShouldGetBytesFromHexString()
24 Assert.AreEqual(new byte[] {0x0a, 0xb1}, Misc.HexStringToByteArray("0aB1")); in ShouldGetBytesFromHexString()
25 … Assert.AreEqual(new byte[] {0xb1, 0x0a}, Misc.HexStringToByteArray("0aB1", reverse: true)); in ShouldGetBytesFromHexString()
26 Assert.AreEqual(new byte[] {0x00, 0xab, 0x15}, Misc.HexStringToByteArray("00aB15")); in ShouldGetBytesFromHexString()
27 …Assert.AreEqual(new byte[] {0x15, 0xab, 0x00}, Misc.HexStringToByteArray("00aB15", reverse: true)); in ShouldGetBytesFromHexString()
28 … Assert.AreEqual(new byte[] {0xab}, Misc.HexStringToByteArray("a\tb", ignoreWhitespace: true)); in ShouldGetBytesFromHexString()
29 … Assert.AreEqual(new byte[] {0xab}, Misc.HexStringToByteArray("a\t \nb", ignoreWhitespace: true)); in ShouldGetBytesFromHexString()
30 …Assert.AreEqual(new byte[] {0xab, 0xcd}, Misc.HexStringToByteArray("ab cd", ignoreWhitespace: true… in ShouldGetBytesFromHexString()
31 …Assert.AreEqual(new byte[] {0xcd, 0xab}, Misc.HexStringToByteArray("ab cd", ignoreWhitespace: true… in ShouldGetBytesFromHexString()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DOpenTitan_LifeCycleController.cs59 testExitToken = Misc.HexStringToByteArray(value);
67 testUnlockToken = Misc.HexStringToByteArray(value);
75 rmaToken = Misc.HexStringToByteArray(value);
88 deviceId = Misc.HexStringToByteArray(value).Reverse().ToArray();
DOpenTitan_CSRNG.cs273 fixedData = Misc.HexStringToByteArray(value);
DOpenTitan_KeyManager.cs116 field = Misc.HexStringToByteArray(value); in ConstructorParseHexstringArgument()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Mocks/
DSpiHost.cs40 var dataToSend = Misc.HexStringToByteArray(hexString); in WriteBytes()
DI2CHost.cs41 var dataToSend = Misc.HexStringToByteArray(hexString); in WriteBytes()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/Disassembler/
DLLVMDisassembler.cs193 opcode = Misc.HexStringToByteArray(result.OpcodeString.Trim(), true); in TryDecodeInstruction()
360 opcode = Misc.HexStringToByteArray(result.OpcodeString, true); in TryDecodeInstruction()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/SiLabs/
DEFR32xG2_LockbitsData.cs206 temp = Misc.HexStringToByteArray(value); in ParseHexStringArgument()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Test/PeripheralsTests/
DOpenTitan_SpiDeviceTest.cs189 var dataToSend = Misc.HexStringToByteArray(hexstring); in AppendPeripheralFifo()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ExecutionTracer/
DTraceBasedModelFlatBufferWriter.cs51 var opcode = Misc.HexStringToByteArray(result.OpcodeString.Trim(), true); in Write()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Extensions/
DFileLoaderExtensions.cs274 … var buffer = Misc.HexStringToByteArray(line.Substring(SRecBytesCountStart, bufferLength)); in LoadSRecord()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Testing/
DTerminalTester.cs160 …pattern = Encoding.GetEncoding("iso-8859-1").GetString(Misc.HexStringToByteArray(pattern, ignoreWh… in WaitFor()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DMisc.cs442 …public static byte[] HexStringToByteArray(string hexString, bool reverse = false, bool ignoreWhite… in HexStringToByteArray() method in Antmicro.Renode.Utilities.Misc
467 var byteArray = HexStringToByteArray(hexString); in TryParseHexString()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/
DQuectelModem.cs746 bytes = Misc.HexStringToByteArray(data); in Qisend()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DOpenTitan_BigNumberAcceleratorCore.cs421 return Misc.HexStringToByteArray(input, reverse: true); in ParseHexPattern()