예제 #1
0
 public HeapDescription(ulong size, CpuPageProperty cpuPageProperty, MemoryPool memoryPoolPreference, ulong alignment = 0, HeapFlags flags = HeapFlags.None)
 {
     SizeInBytes = size;
     Properties  = new HeapProperties(cpuPageProperty, memoryPoolPreference);
     Alignment   = alignment;
     Flags       = flags;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeapProperties"/> struct with <see cref="HeapType.Custom"/>
 /// </summary>
 /// <param name="cpuPageProperty">The cpu page properties.</param>
 /// <param name="memoryPoolPreference">The memory pool preference.</param>
 public HeapProperties(CpuPageProperty cpuPageProperty, MemoryPool memoryPoolPreference)
 {
     Type                  = HeapType.Custom;
     CPUPageProperty       = cpuPageProperty;
     MemoryPoolPreference  = memoryPoolPreference;
     this.CreationNodeMask = 1;
     this.VisibleNodeMask  = 1;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeapProperties"/> struct with <see cref="HeapType.Custom"/>
 /// </summary>
 /// <param name="cpuPageProperty">The cpu page properties.</param>
 /// <param name="memoryPoolPreference">The memory pool preference.</param>
 public HeapProperties(CpuPageProperty cpuPageProperty, MemoryPool memoryPoolPreference)
 {
     Type = HeapType.Custom;
     CPUPageProperty = cpuPageProperty;
     MemoryPoolPreference = memoryPoolPreference;
     this.CreationNodeMask = 1;
     this.VisibleNodeMask = 1;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeapProperties"/> struct with <see cref="HeapType.Custom"/>
 /// </summary>
 /// <param name="cpuPageProperty">The cpu page properties.</param>
 /// <param name="memoryPoolPreference">The memory pool preference.</param>
 /// <param name="creationNodeMask"></param>
 /// <param name="visibleNodeMask"></param>
 public HeapProperties(
     CpuPageProperty cpuPageProperty,
     MemoryPool memoryPoolPreference,
     int creationNodeMask = 1,
     int visibleNodeMask  = 1)
 {
     Type                 = HeapType.Custom;
     CPUPageProperty      = cpuPageProperty;
     MemoryPoolPreference = memoryPoolPreference;
     CreationNodeMask     = creationNodeMask;
     VisibleNodeMask      = visibleNodeMask;
 }