1 instantiation of MachObjectFile
Microsoft.NET.HostModel (1)
MachO\MachObjectFile.cs (1)
111return new MachObjectFile(
20 references to MachObjectFile
Microsoft.NET.HostModel (20)
AppHost\HostWriter.cs (4)
130appHostSourceLength + MachObjectFile.GetSignatureSizeEstimate((uint)appHostSourceLength, destinationFileName) 137isMachOImage = MachObjectFile.IsMachOImage(appHostSourceStream); 152MachObjectFile machObjectFile = MachObjectFile.Create(file);
Bundle\Bundler.cs (3)
330bundleTotalSize += MachObjectFile.GetSignatureSizeEstimate((uint)bundleTotalSize, _hostName); 346MachObjectFile? machFile = null; 352machFile = MachObjectFile.Create(machFileReader);
Bundle\TargetInfo.cs (1)
86return IsWindows ? PEUtils.IsPEImage(filePath) : IsOSX ? MachObjectFile.IsMachOImage(filePath) : ElfUtils.IsElfImage(filePath);
MachO\BinaryFormat\Blobs\CodeDirectoryBlob.cs (3)
76Debug.Assert(pageSize is MachObjectFile.DefaultCodeDirectoryPageSize or MachObjectFile.Arm64CodeDirectoryPageSize); 77byte log2PageSize = pageSize == MachObjectFile.Arm64CodeDirectoryPageSize ? (byte)14 : (byte)12;
MachO\BinaryFormat\Blobs\EmbeddedSignatureBlob.cs (1)
115size += (long)CodeDirectoryBlob.GetCodeSlotCount(fileSize, MachObjectFile.DefaultCodeDirectoryPageSize) * usedHashSize; // Code hashes
MachO\MachObjectFile.cs (8)
77public static MachObjectFile Create(MemoryMappedViewAccessor accessor) 82public static MachObjectFile Create(Stream stream) 88/// Reads the information from a memory mapped Mach-O file and creates a <see cref="MachObjectFile"/> that represents it. 90public static MachObjectFile Create(IMachOFileReader file) 146private static EmbeddedSignatureBlob CreateSignature(MachObjectFile machObject, IMachOFileReader file, string identifier) 260MachObjectFile machFile = Create(file); 278public static void AssertEquivalent(MachObjectFile a, MachObjectFile b)