Example #1
0
 /// <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;
 }
Example #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!");
     }
 }