Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
FStructBuilder Class Reference

#include <StructBuilder.h>

Public Member Functions

 FStructBuilder ()
 
int32 AddMember (int32 MemberSize, int32 MemberAlignment)
 
int32 GetSize () const
 
int32 GetAlignment () const
 

Private Attributes

int32 EndOfLastMember
 
int32 Alignment
 

Detailed Description

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.

Definition at line 13 of file StructBuilder.h.

Constructor & Destructor Documentation

◆ FStructBuilder()

FStructBuilder::FStructBuilder ( )
inline

Definition at line 16 of file StructBuilder.h.

Member Function Documentation

◆ AddMember()

int32 FStructBuilder::AddMember ( int32 MemberSize,
int32 MemberAlignment )
inline

Adds a new member to the end of the struct.

Parameters
MemberSizeThe size of the member.
MemberAlignmentThe alignment of the member.
Returns
The offset of the member from the start of the struct.

Definition at line 30 of file StructBuilder.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAlignment()

int32 FStructBuilder::GetAlignment ( ) const
inline

Returns the current alignment of the struct.

Returns
The alignment of the struct.

Definition at line 53 of file StructBuilder.h.

+ Here is the caller graph for this function:

◆ GetSize()

int32 FStructBuilder::GetSize ( ) const
inline

Returns the current size of the struct.

Returns
The size of the struct.

Definition at line 43 of file StructBuilder.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Alignment

int32 FStructBuilder::Alignment
private

Definition at line 63 of file StructBuilder.h.

◆ EndOfLastMember

int32 FStructBuilder::EndOfLastMember
private

Definition at line 60 of file StructBuilder.h.


The documentation for this class was generated from the following file: