You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Default | The default to use if no flags are given. Same as `AllowOverride \| AlignAuto`. |
138
+
| NoAlignment | This is the most packed form of the struct. All fields are adjacent with no padding (unless manually added) |
139
+
| Packed | Same as `NoAlignment` except that `NoAlignment` is a bit more optimized because no alignment is done. |
140
+
| Align1Byte | Same as `Packed`|
141
+
| Align2Bytes | Aligns the fields on 2 byte boundary. |
142
+
| Align4Bytes | Aligns the fields on 4 byte boundary. |
143
+
| Align8Bytes | Aligns the fields on 8 byte boundary. |
144
+
| AlignAuto | Aligns the fields by their type. |
145
+
| ReorderFields | Specifies the fields should be reordered in order to make the struct a little more compressed. |
146
+
| ForceDataOnly |**Deprecated**. Specifies that the struct may only contain serializable fields. Data-only structs may only inherit data-only structs. |
147
+
| AllowOverride | If set, fields defined in the struct may override fields that are defined in the base struct. |
148
+
| TypeSafeOverride | If set, when fields are overridden, they must have the same type (which would make it pretty useless to override). Implies `AllowOverride`. If fields have a different type, an `UnsafeOverrideError` is raised. |
149
+
| ForceSafeOverride |**Deprectaed**. Same as `TypeSafeOverride`. |
150
+
| FixedSize | If set, the struct must have a fixed size. If not, an exception `SizeError` is raised. |
151
+
| ForceFixedSize |**Deprecated**. Same as `FixedSize`. |
152
+
| AllowInline |**Deprecated**. If set, the struct's fields will be inlined into another struct the contains this struct. |
153
+
| Protected | If set, denies any overrides of that structure. If a struct is trying to override a field of it, an `UnoverridableFieldError` is raised. |
154
+
| LockedStructure |**Deprecated**. Same as `Protected`. |
155
+
| Final | Marks the structure so it won't be inheritable by any other class. If a struct is trying to inherit it, an `InheritanceError` is raised. |
0 commit comments