/// <summary> /// Initializes a new instance of the <see cref="TestAssemblyLinker"/> class. /// </summary> public unsafe TestAssemblyLinker() { int maxSections = (int)SectionKind.Max; _sections = new List<LinkerSection>(maxSections); for (int i = 0; i < maxSections; i++) _sections.Add(new TestLinkerSection((SectionKind)i, String.Empty, IntPtr.Zero)); this.allocateArrayHandler = new AllocateArrayDelegate(RuntimeBase.AllocateArray); this.allocateObjectHandler = new AllocateObjectDelegate(RuntimeBase.AllocateObject); }
/// <summary> /// Initializes a new instance of the <see cref="TestAssemblyLinker"/> class. /// </summary> public unsafe TestAssemblyLinker() { int maxSections = (int)SectionKind.Max; sections = new List <LinkerSection>(maxSections); for (int i = 0; i < maxSections; i++) { sections.Add(new TestLinkerSection((SectionKind)i, String.Empty, IntPtr.Zero)); } this.allocateArrayHandler = new AllocateArrayDelegate(global::Mosa.Internal.Runtime.AllocateArray); this.allocateObjectHandler = new AllocateObjectDelegate(global::Mosa.Internal.Runtime.AllocateObject); }