1 write to FileAlignment
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\PEHeader.cs (1)
322
FileAlignment
= reader.ReadInt32();
20 references to FileAlignment
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
Emit\CompilationEmitTests.cs (6)
3537
Assert.Equal(0x200, peHeaders.PEHeader.
FileAlignment
);
3572
Assert.Equal(0x00000200, peHeaders.PEHeader.
FileAlignment
); //doesn't change based on architecture.
3622
Assert.Equal(0x200, peHeaders.PEHeader.
FileAlignment
);
3661
Assert.Equal(0x00000200, peHeaders.PEHeader.
FileAlignment
);
3701
Assert.Equal(0x200, peHeaders.PEHeader.
FileAlignment
); //doesn't change based on architecture
3812
Assert.Equal(1024, peHeaders.PEHeader.
FileAlignment
);
Emit\EmitMetadataTests.cs (2)
2261
Assert.Equal(0x2000, peHeader.
FileAlignment
);
2448
Assert.Equal(0x200, peHeader.
FileAlignment
);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (8)
Emit\CompilationEmitTests.vb (8)
2130
Assert.Equal(&H200, peHeaders.PEHeader.
FileAlignment
)
2153
Assert.Equal(&H200, peHeaders.PEHeader.
FileAlignment
)
2191
Assert.Equal(&H200, peHeaders.PEHeader.
FileAlignment
)
2214
Assert.Equal(&H200, peHeaders.PEHeader.
FileAlignment
)
2252
Assert.Equal(&H200, peHeaders.PEHeader.
FileAlignment
) 'doesn't change based on architecture
2270
Assert.Equal(&H200, peHeaders.PEHeader.
FileAlignment
)
2372
Assert.Equal(1024, peHeaders.PEHeader.
FileAlignment
)
2376
Assert.Equal(4096, peHeaders.PEHeader.
FileAlignment
)
System.Reflection.Metadata (4)
System\Reflection\PortableExecutable\PEHeader.cs (2)
71
/// The alignment (in bytes) of sections when they are loaded into memory. It must be greater than or equal to <see cref="
FileAlignment
"/>.
80
/// then <see cref="
FileAlignment
"/> must match <see cref="SectionAlignment"/>.
System\Reflection\PortableExecutable\SectionHeader.cs (2)
30
/// For PE images, this must be a multiple of <see cref="PEHeader.
FileAlignment
"/>.
40
/// For PE images, this must be a multiple of <see cref="PEHeader.
FileAlignment
"/>.