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