ObjectLayoutInspector
ObjectLayoutInspector copied to clipboard
A tool that helps to see an internal structure of the CLR types at runtime
Hi Sergey, I have some good news: I noticed that you can avoid the per-field padding (i.e. alignment on pointer boundaries) for classes. All you have to do is set...
https://devblogs.microsoft.com/premier-developer/managed-object-internals-part-4-fields-layout/ Hi, the link in the blog is wrong and may need to be updated.
Use CI
SizeOf != SizeOfInstance Fields. needed for networking.
Hi, I would like to use this library in Unity3D which use mono. The editor crash and output this in the log: **Assertion at ..\mono\mini\method-to-ir.c:13336, condition `ins->opcode >= MONO_CEE_LAST' not...
Unfortunately, byref-like types cannot be used as type arguments... ``` System.TypeLoadException: The generic type 'SizeComputer`1' was used with an invalid instantiation in assembly 'ObjectLayoutInspector, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at System.RuntimeType.MakeGenericType(Type[] instantiation)...
Adding a link to Nuget package would save users some typing (to check that it's indeed on Nuget).
Seems I can create classes portable with no ctor running https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.formatterservices.getuninitializedobject?view=xamarinios-10.8 . Need yet to find how to access class memory portably.
C/Rust/F# output of C# structs instead of custom layout. Is custom current print layout compatible with any ASCII based image/doc generator?
Have to use the `Type` overload as they can't be used as a generic parameter; however fails due to `MakeGenericType` I assume for same reason? ``` Unhandled Exception: System.TypeLoadException: The...