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; }
/// <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; }
/// <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; }