Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 31) sorted by relevance

12

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Memory/
DArrayMemory.cs24 array = source; in ArrayMemory()
33 array = new byte[size]; in ArrayMemory()
47 var result = BitConverter.ToUInt64(array, intOffset); in ReadQuadWord()
58 bytes.CopyTo(array, offset); in WriteQuadWord()
68 var result = BitConverter.ToUInt32(array, intOffset); in ReadDoubleWord()
79 bytes.CopyTo(array, offset); in WriteDoubleWord()
94 var result = BitConverter.ToUInt16(array, intOffset); in ReadWord()
105 bytes.CopyTo(array, offset); in WriteWord()
115 var result = array[intOffset]; in ReadByte()
126 array[intOffset] = value; in WriteByte()
[all …]
DMappedMemory.cs314 …public void WriteBytes(long offset, byte[] array, int startingIndex, int count, IPeripheral contex… in WriteBytes() argument
329 … Marshal.Copy(array, startingIndex + written, new IntPtr(segment.ToInt64() + localOffset), length); in WriteBytes()
443 var array = new byte[rangeLength]; in SetRange()
446 array[i] = value; in SetRange()
448 WriteBytes(rangeStart, array); in SetRange()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DByteArrayWithAccessTracking.cs28 array = new byte[partsCount * accessByteWidth]; in ByteArrayWithAccessTracking()
37 Array.Clear(array, 0, array.Length); in Reset()
58 array[i + offset] = tempArray[i]; in SetPart()
71 … var value = BitHelper.ToUInt32(array, (int)(part * accessByteWidth), (int)accessByteWidth, true); in GetPartAsDoubleWord()
78 if(data.Length != array.Length) in SetArrayTo()
82 array = data; in SetArrayTo()
103 return array; in RetriveData()
123 private byte[] array; field in Antmicro.Renode.Peripherals.Utilities.ByteArrayWithAccessTracking
DMisc.cs243 public static void ByteArrayWrite(long offset, uint value, byte[] array) in ByteArrayWrite() argument
249 array[index + i] = bytes[i]; in ByteArrayWrite()
253 public static uint ByteArrayRead(long offset, byte[] array) in ByteArrayRead() argument
259 bytes[i] = array[index + i]; in ByteArrayRead()
1490 public static void SetBytesFromValue(this byte[] array, uint value, int startIndex) in SetBytesFromValue() argument
1494 array[startIndex++] = b; in SetBytesFromValue()
1753 public static void Fill<T>(this T[] array, T value, int startIndex = 0, int? count = null) in Fill() argument
1755 if(startIndex >= array.Length || startIndex < 0) in Fill()
1759 count = count ?? array.Length - startIndex; in Fill()
1760 if(startIndex + count.Value > array.Length) in Fill()
[all …]
DBitHelper.cs574 public static uint GetValueFromBitsArray(IEnumerable<bool> array) in GetValueFromBitsArray() argument
578 foreach(var item in array) in GetValueFromBitsArray()
589 public static uint GetValueFromBitsArray(params bool[] array) in GetValueFromBitsArray() argument
591 return GetValueFromBitsArray((IEnumerable<bool>)array); in GetValueFromBitsArray()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Memory/
DArrayMemoryWithReadonlys.cs45 bytes.CopyTo(array, offset); in WriteDoubleWord()
53 bytes.CopyTo(array, offset); in WriteWord()
61 array[intOffset] = value; in WriteByte()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/DMA/
DPlace.cs14 public Place(byte[] array, int startIndex) in Place() argument
16 Array = array; in Place()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DOpenTitan_BigNumberAccelerator.cs39 var array = bi.ToByteArray(); in ToByteArray()
40 if(array.Length > width) in ToByteArray()
42 array = array.Take(width).ToArray(); in ToByteArray()
44 else if(array.Length < width) in ToByteArray()
46 var fill = width - array.Length; in ToByteArray()
47 var lsb = array[array.Length - 1]; in ToByteArray()
48array = array.Concat(Enumerable.Repeat(lsb >= 0x80 ? (byte)0xff : (byte)0, fill)).ToArray(); in ToByteArray()
50 return array; in ToByteArray()
DEmulatorController.cs409 private static void HandleArrayWrite(long offset, uint value, byte[] array) in HandleArrayWrite() argument
415 array[index + i] = bytes[i]; in HandleArrayWrite()
419 private static uint HandleArrayRead(long offset, byte[] array) in HandleArrayRead() argument
425 bytes[i] = array[index + i]; in HandleArrayRead()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Collections/
DCircularBuffer.cs82 public void CopyTo(T[] array, int arrayIndex) in CopyTo() argument
90 … Array.Copy(buffer, FirstPosition, array, arrayIndex, LastPosition + 1 - FirstPosition); in CopyTo()
95 Array.Copy(buffer, start, array, arrayIndex, rightSideLength); in CopyTo()
96 Array.Copy(buffer, 0, array, arrayIndex + rightSideLength, LastPosition + 1); in CopyTo()
DAutoResizingList.cs63 public void CopyTo(T[] array, int index) in CopyTo() argument
65 Array.Copy(data, array, Count); in CopyTo()
DTwoWayDictionary.cs22 var array = Lefts.ToArray(); in Clear()
23 foreach(var item in array) in Clear()
DSerializableWeakKeyDictionary.cs144 public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) in CopyTo() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/USBDeprecated/
DUSBDescriptor.cs32 array = new byte[value];
38 byte[] array; field in Antmicro.Renode.Peripherals.USBDeprecated.USBDescriptor
42 array[0x0] = Length; in ToArray()
43 array[0x1] = (byte)Type; in ToArray()
44 return array; in ToArray()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DRedirector.cs83 …public void WriteBytes(long offset, byte[] array, int startingIndex, int count, IPeripheral contex… in WriteBytes() argument
85 … systemBus.WriteBytes(array, redirectedAddress + checked((ulong)offset), count, context: context); in WriteBytes()
DIMultibyteWritePeripheral.cs15 …void WriteBytes(long offset, byte[] array, int startingIndex, int count, IPeripheral context = nul… in WriteBytes() argument
DSymbolLookup.cs843 public int Length { get { return array.Length - iterator; } }
852 array = symbols; in SymbolProvider()
857 return array[iterator++]; in Consume()
862 return iterator < array.Length; in HasSymbolsLeft()
867 return array[iterator]; in Peek()
871 private readonly Symbol[] array; field in Antmicro.Renode.Core.SymbolLookup.SortedIntervals.SymbolProvider
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/Collections/
DCircularBufferTests.cs146 var array = new [] { 1, 2, 3, -1, 0 }; in ShouldSaveWithoutWrapArray()
149 buffer.Enqueue(array[i]); in ShouldSaveWithoutWrapArray()
154 CollectionAssert.AreEqual(array, copy); in ShouldSaveWithoutWrapArray()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DPacketTests.cs183 structureArray.array = new byte[5] { 100, 201, 102, 203, 104 }; in TestEncode()
186 structureArray.array = new byte[3] { 100, 201, 102 }; in TestEncode()
189 structureArray.array = new byte[4] { 100, 201, 102, 203 }; in TestEncode()
194 structureArrayWithOffset.array = new byte[] { 0, 1, 2, 3 }; in TestEncode()
197 structureArray.array = new byte[] { 5, 11, 44, 255 }; in TestEncode()
387 public byte[] array; field
405 public byte[] array; field
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm64/
DARMv8A.cs368 var array = IntPtr.Zero;
377 array = Marshal.ReadIntPtr(arrayPointer);
380 Marshal.Copy(array, ArmCpRegInfoPointersArray, 0, (int)count);
393 if(array != IntPtr.Zero)
395 Free(array);
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DPythonEngine.cs155 protected static string Aggregate(string[] array) in Aggregate() argument
157 …return array.Aggregate((prev, curr) => string.Format("{0}{1}{2}", prev, Environment.NewLine, curr)… in Aggregate()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Structure/
DMACAddress.cs155 public static MACAddress FromBytes(byte[] array, int startingIndex = 0) in FromBytes()
160 result.SetByte(i, array[startingIndex + i]); in FromBytes()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/I2C/
DSHT21.cs271 private byte GetSTH21CRC(byte[] array, int nrOfBytes) in GetSTH21CRC() argument
277 crc ^= (array[i]); in GetSTH21CRC()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DOpenTitan_BigNumberAcceleratorCore.cs811 var array = new byte[WideDataRegisterWidthInBytes]; in BnLoadStoreHandler()
812 dataMemory.ReadBytes(addr, array.Length, array, 0); in BnLoadStoreHandler()
813 wideDataRegisters[grdVal].SetTo(new BigInteger(array)); in BnLoadStoreHandler()
817 var array = wideDataRegisters[grdVal].AsByteArray; in BnLoadStoreHandler()
818 dataMemory.WriteBytes(addr, array); in BnLoadStoreHandler()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Test/PeripheralsTests/
DSHT21Test.cs86 private byte GetSTH21CRC(byte[] array, int nrOfBytes) in GetSTH21CRC() argument
92 crc ^= (array[i]); in GetSTH21CRC()

12