Searched refs:hexString (Results 1 – 3 of 3) sorted by relevance
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Mocks/ |
| D | SpiHost.cs | 38 public void WriteBytes(string hexString) in WriteBytes() argument 40 var dataToSend = Misc.HexStringToByteArray(hexString); in WriteBytes()
|
| D | I2CHost.cs | 37 public void WriteBytes(uint addr, string hexString) in WriteBytes() argument 41 var dataToSend = Misc.HexStringToByteArray(hexString); in WriteBytes()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/ |
| D | Misc.cs | 442 …public static byte[] HexStringToByteArray(string hexString, bool reverse = false, bool ignoreWhite… in HexStringToByteArray() argument 446 hexString = Regex.Replace(hexString, @"\s+", ""); in HexStringToByteArray() 449 if(hexString.Length % 2 != 0) in HexStringToByteArray() 454 byte[] bytes = new byte[hexString.Length / 2]; in HexStringToByteArray() 458 bytes[byteIndex] = Convert.ToByte(hexString.Substring(i * 2, 2), 16); in HexStringToByteArray() 465 …public static bool TryParseHexString<T>(string hexString, out T[] outArray, int elementSize, bool … in TryParseHexString() argument 467 var byteArray = HexStringToByteArray(hexString); in TryParseHexString()
|