TypeCode alignment: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
*TypeCode_free | *TypeCode_free | ||
*TypeCode_print | *TypeCode_print | ||
[[Category:SOM IRF]] |
Revision as of 04:02, 30 November 2020
This function supplies the alignment value for a given TypeCode.
Syntax
TypeCode tc; Environment *env; short rc; rc = TypeCode_alignment(tc, env);
Parameters
- tc (TypeCode)
- The TypeCode whose alignment information is desired.
- env (Environment *)
- A pointer to an Environment structure.
Returns
rc (short) A short integer containing the alignment value.
Remarks
This function returns the alignment information associated with the given TypeCode. The alignment value is a short integer that should evenly divide any memory address where an instance of the type described by the TypeCode will occur.
Related Functions
- TypeCodeNew
- TypeCode_equal
- TypeCode_kind
- TypeCode_param_count
- TypeCode_parameter
- TypeCode_setAlignment
- TypeCode_size
- TypeCode_free
- TypeCode_print