Home -> IStateBufferLayout -> AppendField
Description
The AppendField method appends a scalar field to the state buffer layout.
Usage
void AppendField(const Marshal::In<std::string>& fieldName, DataType type, size_t arraySize = 0);
Argument list
- fieldName [const Marshal::In<std::string>]
- The name to assign to the field in the state buffer layout.
- type [DataType]
- The scalar data type for the field.
- arraySize [size_t]
- The optional array element count. Use 0 for a non-array field.