Exemplo n.º 1
0
 /// <summary>
 /// Constructs a new instance.
 /// </summary>
 /// <param name="region">accessed memory region</param>
 /// <param name="addr">accessed address</param>
 public MemParams(MemoryRegion region, ulong addr)
 {
     Region = region;
     MinAddress = addr;
     MaxAddress = addr;
 }
Exemplo n.º 2
0
 internal MemoryMappedStorage(object dataItem, TypeDescriptor dataItemType, MemoryRegion region, MemoryLayout layout)
 {
     Kind = EKind.DataItem;
     DataItem = dataItem;
     DataItemType = dataItemType;
     Region = region;
     Layout = layout;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructs an instance of the memory mapper.
 /// </summary>
 public MemoryMapper()
 {
     MarshalInfo = new DefaultMarshalInfo();
     LayoutAlgorithm = new DefaultMemoryLayoutAlgorithm();
     DefaultRegion = new MemoryRegion(MarshalInfo);
 }
Exemplo n.º 4
0
 internal MemoryMappedStorage(object data, MemoryRegion region, MemoryLayout layout)
 {
     Kind = EKind.Data;
     Data = data;
     Region = region;
     Layout = layout;
 }
Exemplo n.º 5
0
 internal MemoryMappedStorage(IStorable variable, MemoryRegion region, MemoryLayout layout)
 {
     Kind = EKind.Variable;
     Variable = variable;
     Region = region;
     Layout = layout;
 }
Exemplo n.º 6
0
 internal MemoryRegion(MemoryRegion parent, ulong baseAddress)
 {
     Items = new List<MemoryMappedStorage>();
     Parent = parent;
     MarshalInfo = parent.MarshalInfo;
     BaseAddress = baseAddress;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Constructs an instance of the memory mapper.
 /// </summary>
 public MemoryMapper()
 {
     MarshalInfo     = new DefaultMarshalInfo();
     LayoutAlgorithm = new DefaultMemoryLayoutAlgorithm();
     DefaultRegion   = new MemoryRegion(MarshalInfo);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Constructs a new mapper.
 /// </summary>
 /// <param name="region">memory region to associate this mapper with</param>
 public BlockMemXILMapper(MemoryRegion region)
 {
     _region = region;
 }