1 //
2 // Copyright (c) 2010-2018 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 System;
9 
10 namespace Antmicro.Renode.Peripherals.DMA
11 {
12     public class Place
13     {
Place(byte[] array, int startIndex)14         public Place(byte[] array, int startIndex)
15         {
16             Array = array;
17             StartIndex = startIndex;
18         }
19 
Place(ulong address)20         public Place(ulong address)
21         {
22             Address = address;
23         }
24 
25         public ulong? Address { get; private set; }
26         public byte[] Array { get; private set; }
27         public int? StartIndex { get; private set; }
28 
operator Place(ulong address)29         public static implicit operator Place(ulong address)
30         {
31             return new Place(address);
32         }
33     }
34 }
35 
36