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.
更多...
#include <StructBuilder.h>
|
| int32 | AddMember (int32 MemberSize, int32 MemberAlignment) |
| | Adds a new member to the end of the struct. 更多...
|
| |
| int32 | GetAlignment () const |
| | Returns the current alignment of the struct. 更多...
|
| |
| int32 | GetSize () const |
| | Returns the current size of the struct. 更多...
|
| |
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.
◆ AddMember()
| int32 FStructBuilder::AddMember |
( |
int32 |
MemberSize, |
|
|
int32 |
MemberAlignment |
|
) |
| |
|
inline |
Adds a new member to the end of the struct.
- 参数
-
| MemberSize | The size of the member. |
| MemberAlignment | The alignment of the member. |
- 返回
- The offset of the member from the start of the struct.
◆ GetAlignment()
| int32 FStructBuilder::GetAlignment |
( |
| ) |
const |
|
inline |
Returns the current alignment of the struct.
- 返回
- The alignment of the struct.
◆ GetSize()
| int32 FStructBuilder::GetSize |
( |
| ) |
const |
|
inline |
Returns the current size of the struct.
- 返回
- The size of the struct.
该类的文档由以下文件生成: