engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FStructBuilder类 参考

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>

Public 成员函数

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.

参数
MemberSizeThe size of the member.
MemberAlignmentThe 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.

该类的文档由以下文件生成: