Is there a way to know the exact byte layout of a class at runtime?
Title basically. I'm trying to hack together a hobby project where I stackalloc a Span<byte> and bitcast it to a class instance, but I need to know the exact layout of the object and potentially the layout of its header. Are there any tools (or any reflection methods) that are able to give me that info?