structify library
A library for working with C-style structs and unions in Dart
Classes
- BaseStructPool
- A base class for managing a pool of structs
- ByteOrder
- Annotation for specifying field endianness
- Circle
- A circle struct with center point and radius
- ComplexStruct
- Complex struct example showing nested structs and arrays
- DataUnion
- Example union showing multiple ways to interpret the same memory
- DebugPrintable
- Base interface for structs that support debug printing
- DynamicAlignedArray
- Resizable array with alignment preservation
- EndianUtils
- Helper for endian conversion
- JsonSerializable
- Base interface for structs that can be serialized to JSON
- Matrix3x3
- A 3x3 matrix struct
- NetworkMessage
- Mixed endianness struct for network protocols
- NetworkPacket
- Example of a struct using alignment and endianness
- PackedPoint
- Example of a packed struct with no padding
- Point
- Example struct implementation showing basic usage
- PointPool
- A pool for managing Point structs
- Rectangle
- Example of a struct with arrays
- SimdVector
- SIMD-aligned vector for fast operations
- Size
- Size annotation for specifying dynamic array sizes
- StringStruct
- Represents an example usage struct containing a string and a string array.
- StructAlloc
- Memory management utilities
- StructField
- Main annotation for specifying struct field properties
- StructMemory
- Global memory manager for convenience
- StructScope
- A scope-based memory manager for automatic cleanup
- StructString
- Represents a fixed-length string type for struct fields.
- StructStringArray
- Represents a string array for struct fields.
- TaggedUnion
- Example of a struct containing a union
Enums
- StructEndian
- Endianness specification for struct fields
Extensions
- EndianConversion on ByteData
- Extension methods for endian conversion
-
Int32ArrayHelpers
on Array<
Int32> - Helper for numeric array operations
-
PointBatchExt
on List<
Pointer< Point> > - Extension for batch operations on a list of Pointer<Point>
Constants
- description → const String
- structifyVersion → const String