├── .gitattributes ├── .github └── workflows │ ├── Master.yaml │ └── Pull Request.yaml ├── .gitignore ├── LICENSE ├── ObjectLayoutInspector.sln ├── README.md ├── images └── FieldsLayout_Figure1.gif └── src ├── ObjectLayoutInspector.Benchmarks ├── BenchmarkDotNet.Artifacts │ └── results │ │ ├── ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report-github.md │ │ ├── ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report.csv │ │ ├── ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report.html │ │ ├── ObjectLayoutInspector.Benchmarks.UnitEquals-report-github.md │ │ ├── ObjectLayoutInspector.Benchmarks.UnitEquals-report.csv │ │ └── ObjectLayoutInspector.Benchmarks.UnitEquals-report.html ├── ObjectLayoutInspector.Benchmarks.csproj ├── Program.cs └── TypeVsRecursiveVsFlat.cs ├── ObjectLayoutInspector.Tests ├── AsyncStateMachineLayoutTests.cs ├── ClassLayoutTests.cs ├── ClassWithExplicitLayoutTests.cs ├── ClassWithNestedStructPrinterTests.cs ├── ComplexUnsafeLayoutTests.cs ├── CorefxTypesTests.cs ├── ExcessivePaddings.cs ├── FixedTests.cs ├── GenericStructsTests.cs ├── InstanceSizeTests.cs ├── NullableTests.cs ├── ObjectLayoutInspector.Tests.csproj ├── Objects │ ├── Base.cs │ ├── ByteAndInt.cs │ ├── ClassWithExplicitLayout.cs │ ├── ClassWithExplicitLayoutAndOffsetForFirstField.cs │ ├── ClassWithNestedCustomStruct.cs │ ├── Derived.cs │ ├── EmptyClass.cs │ └── NotAlignedClass.cs ├── PaddingTests.cs ├── RawLayoutTests.cs ├── RunManually │ └── LayoutsForAllKnownTypes.cs ├── StructLayoutTests.cs ├── StructSizeTests.cs ├── StructWithExplicitLayoutTests.cs ├── Structs │ ├── BoolBoolStruct.cs │ ├── ByteEnum.cs │ ├── ClrWillReorderThisStruct.cs │ ├── ComplexFixedStruct.cs │ ├── ComplexStruct.cs │ ├── ComplexUnionCaseFromSO.cs │ ├── CustomPrimitive.cs │ ├── DoubleByteStructByteStruct.cs │ ├── DoubleFloatStruct.cs │ ├── EmptyStruct.cs │ ├── EnumIntStruct.cs │ ├── EnumStruct.cs │ ├── ExplicitHolderOfSequentialIntObject.cs │ ├── ExplicitLayoutNoOverlapStruct.cs │ ├── ExplicitLayoutOverlapStruct.cs │ ├── FixedBytes.cs │ ├── FloatFloatFloatStruct.cs │ ├── FloatFloatStruct.cs │ ├── GenericStruct.cs │ ├── LongByteStruct.cs │ ├── LongStruct.cs │ ├── MyStruct.cs │ ├── NestedStructWithOneField.cs │ ├── NotAlignedStruct.cs │ ├── NotAlignedStructWithAutoLayout.cs │ ├── NotAlignedStructWithPack1.cs │ ├── SequentialIntObject.cs │ ├── SingleByteStruct.cs │ ├── StructWithExplicitLayout.cs │ ├── StructWithExplicitLayoutAndOffsetForFirstField.cs │ ├── UnionStruct.cs │ ├── UshortEnum.cs │ ├── VeryVeryComplexStruct.cs │ ├── WithNestedUnsafeStruct.cs │ ├── WithNestedUnsafeUnsafeStruct.cs │ ├── WithNullableBoolBoolStructStruct.cs │ ├── WithNullableBoolBoolStructStructStruct.cs │ ├── WithNullableIntNullableBoolIntStruct.cs │ ├── WithNullableIntStruct.cs │ ├── WithString.cs │ └── WithVolatile.cs ├── TestsBase.cs └── UnsafeLayoutTests.cs └── ObjectLayoutInspector ├── AssemblyInfo.cs ├── Detectors.cs ├── EnumerableExtensions.cs ├── FieldLayoutBase.cs ├── Helpers └── ReflectionHelper.cs ├── LayoutPrinter.cs ├── ObjectLayoutInspector.csproj ├── ObjectLayoutInspector.xml ├── Padder.cs ├── TypeInspector.cs ├── TypeLayout.cs ├── TypeLayoutCache.cs ├── UnsafeLayout.cs ├── UnsafeTree.cs └── src └── ObjectLayoutInspector └── ObjectLayoutInspector.xml /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/Master.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/.github/workflows/Master.yaml -------------------------------------------------------------------------------- /.github/workflows/Pull Request.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/.github/workflows/Pull Request.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/LICENSE -------------------------------------------------------------------------------- /ObjectLayoutInspector.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/ObjectLayoutInspector.sln -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/README.md -------------------------------------------------------------------------------- /images/FieldsLayout_Figure1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/images/FieldsLayout_Figure1.gif -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report-github.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report-github.md -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report.csv -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.TypeVsRecursiveVsFlat-report.html -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.UnitEquals-report-github.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.UnitEquals-report-github.md -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.UnitEquals-report.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.UnitEquals-report.csv -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.UnitEquals-report.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/BenchmarkDotNet.Artifacts/results/ObjectLayoutInspector.Benchmarks.UnitEquals-report.html -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/ObjectLayoutInspector.Benchmarks.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/ObjectLayoutInspector.Benchmarks.csproj -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/Program.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Benchmarks/TypeVsRecursiveVsFlat.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Benchmarks/TypeVsRecursiveVsFlat.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/AsyncStateMachineLayoutTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/AsyncStateMachineLayoutTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/ClassLayoutTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/ClassLayoutTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/ClassWithExplicitLayoutTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/ClassWithExplicitLayoutTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/ClassWithNestedStructPrinterTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/ClassWithNestedStructPrinterTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/ComplexUnsafeLayoutTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/ComplexUnsafeLayoutTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/CorefxTypesTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/CorefxTypesTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/ExcessivePaddings.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/ExcessivePaddings.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/FixedTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/FixedTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/GenericStructsTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/GenericStructsTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/InstanceSizeTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/InstanceSizeTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/NullableTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/NullableTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/ObjectLayoutInspector.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/ObjectLayoutInspector.Tests.csproj -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Objects/Base.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Objects/Base.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Objects/ByteAndInt.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Objects/ByteAndInt.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Objects/ClassWithExplicitLayout.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Objects/ClassWithExplicitLayout.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Objects/ClassWithExplicitLayoutAndOffsetForFirstField.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Objects/ClassWithExplicitLayoutAndOffsetForFirstField.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Objects/ClassWithNestedCustomStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Objects/ClassWithNestedCustomStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Objects/Derived.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Objects/Derived.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Objects/EmptyClass.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Objects/EmptyClass.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Objects/NotAlignedClass.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Objects/NotAlignedClass.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/PaddingTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/PaddingTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/RawLayoutTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/RawLayoutTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/RunManually/LayoutsForAllKnownTypes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/RunManually/LayoutsForAllKnownTypes.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/StructLayoutTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/StructLayoutTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/StructSizeTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/StructSizeTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/StructWithExplicitLayoutTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/StructWithExplicitLayoutTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/BoolBoolStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/BoolBoolStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/ByteEnum.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/ByteEnum.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/ClrWillReorderThisStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/ClrWillReorderThisStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/ComplexFixedStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/ComplexFixedStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/ComplexStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/ComplexStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/ComplexUnionCaseFromSO.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/ComplexUnionCaseFromSO.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/CustomPrimitive.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/CustomPrimitive.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/DoubleByteStructByteStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/DoubleByteStructByteStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/DoubleFloatStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/DoubleFloatStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/EmptyStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/EmptyStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/EnumIntStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/EnumIntStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/EnumStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/EnumStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/ExplicitHolderOfSequentialIntObject.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/ExplicitHolderOfSequentialIntObject.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/ExplicitLayoutNoOverlapStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/ExplicitLayoutNoOverlapStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/ExplicitLayoutOverlapStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/ExplicitLayoutOverlapStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/FixedBytes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/FixedBytes.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/FloatFloatFloatStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/FloatFloatFloatStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/FloatFloatStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/FloatFloatStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/GenericStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/GenericStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/LongByteStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/LongByteStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/LongStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/LongStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/MyStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/MyStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/NestedStructWithOneField.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/NestedStructWithOneField.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/NotAlignedStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/NotAlignedStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/NotAlignedStructWithAutoLayout.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/NotAlignedStructWithAutoLayout.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/NotAlignedStructWithPack1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/NotAlignedStructWithPack1.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/SequentialIntObject.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/SequentialIntObject.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/SingleByteStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/SingleByteStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/StructWithExplicitLayout.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/StructWithExplicitLayout.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/StructWithExplicitLayoutAndOffsetForFirstField.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/StructWithExplicitLayoutAndOffsetForFirstField.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/UnionStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/UnionStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/UshortEnum.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/UshortEnum.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/VeryVeryComplexStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/VeryVeryComplexStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/WithNestedUnsafeStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/WithNestedUnsafeStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/WithNestedUnsafeUnsafeStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/WithNestedUnsafeUnsafeStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/WithNullableBoolBoolStructStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/WithNullableBoolBoolStructStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/WithNullableBoolBoolStructStructStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/WithNullableBoolBoolStructStructStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/WithNullableIntNullableBoolIntStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/WithNullableIntNullableBoolIntStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/WithNullableIntStruct.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/WithNullableIntStruct.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/WithString.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/WithString.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/Structs/WithVolatile.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/Structs/WithVolatile.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/TestsBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/TestsBase.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector.Tests/UnsafeLayoutTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector.Tests/UnsafeLayoutTests.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.Runtime.CompilerServices; 3 | 4 | [assembly:InternalsVisibleToAttribute("ObjectLayoutInspector.Tests")] -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/Detectors.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/Detectors.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/EnumerableExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/EnumerableExtensions.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/FieldLayoutBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/FieldLayoutBase.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/Helpers/ReflectionHelper.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/Helpers/ReflectionHelper.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/LayoutPrinter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/LayoutPrinter.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/ObjectLayoutInspector.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/ObjectLayoutInspector.csproj -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/ObjectLayoutInspector.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/ObjectLayoutInspector.xml -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/Padder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/Padder.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/TypeInspector.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/TypeInspector.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/TypeLayout.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/TypeLayout.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/TypeLayoutCache.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/TypeLayoutCache.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/UnsafeLayout.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/UnsafeLayout.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/UnsafeTree.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/UnsafeTree.cs -------------------------------------------------------------------------------- /src/ObjectLayoutInspector/src/ObjectLayoutInspector/ObjectLayoutInspector.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeyTeplyakov/ObjectLayoutInspector/HEAD/src/ObjectLayoutInspector/src/ObjectLayoutInspector/ObjectLayoutInspector.xml --------------------------------------------------------------------------------