Next: Types, Previous: Arrays, Up: The Poke Language [Contents][Index]
Structs are the main abstraction that Poke provides to structure data. They contain heterogeneous collections of values.
• Struct Types: | Simple structs. | |
• Struct Constructors: | Constructing struct values. | |
• Struct Comparison: | Comparing struct values | |
• Field Endianness: | Specifying the endianness of integral fields. | |
• Accessing Fields: | Getting and fetching the values of fields. | |
• Field Constraints: | Specifying data integrity. | |
• Field Initializers: | Initial values for fields. | |
• Field Labels: | Explicit offsets for fields. | |
• Pinned Structs: | Fix the offset of fields. | |
• The OFFSET variable: | Accessing the offset of the current field. | |
• Integral Structs: | Composite data stored in integers. | |
• Unions: | Dealing with conditional data. | |
• Union Constructors: | Constructing union values. | |
• Optional Fields: | Fields that may or may not exist. | |
• Casting Structs: | Converting structs from one type to another. | |
• Declarations in Structs: | Declaring stuff within a struct. | |
• Methods: | Declaring struct methods. | |
• Struct Attributes: | Accessing properties of struct values. |
Next: Types, Previous: Arrays, Up: The Poke Language [Contents][Index]