Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
Helper to find the effective size of a struct If a struct contains no members, its size as defined by C++ is 1 byte to allow for pointer arithmetic However, if we don't use pointer arithmetic (e.g. have them in an array), then we can avoid this waste by computing its effective size. The effective size of a struct is its size when you derive from it. A struct that has no members ends up with an effective size of zero bytes.
| Name | TGetEffectiveSize |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitCore/Trait.h |
| Include Path | #include "TraitCore/Trait.h" |
Syntax
template<class StructType>
struct TGetEffectiveSize
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Value | uint32 | The effective size of the specified struct. | TraitCore/Trait.h |