/// <summary>
 /// Constructs a HeapConnector instance.
 /// </summary>
 public HeapConnector(int dataAddress, HeapType dataType, IHeap heap, IHeapConnectorFactory heapDataFactory, DeallocationFunc deallocFunc)
 {
     this.dataAddress      = dataAddress;
     this.dataType         = dataType;
     this.heap             = heap;
     this.heapDataFactory  = heapDataFactory;
     this.deallocationFunc = deallocFunc;
 }
Exemple #2
0
 public HeapIntConnector(int dataAddress, HeapType dataType, IHeap heap, IHeapConnectorFactory heapDataFactory, DeallocationFunc deallocFunc)
     : base(dataAddress, dataType, heap, heapDataFactory, deallocFunc)
 {
     if (dataType.BuiltInType != BuiltInTypeEnum.Integer)
     {
         throw new InvalidOperationException("Invalid heap type!");
     }
 }