/Engine/Source/Runtime/Core/Public/Misc/StructBuilder.h
Lays out up a struct at runtime, in hopefully the same way as a compiler, and returns the offset of each member as it's added.
class FStructBuilder