|
infix
A JIT-Powered FFI Library for C
|
Cookbook Chapter 2: Working with Packed Structs. More...
Classes | |
| struct | Packed |
Functions | |
| static int | process_packed (Packed p) |
| int | main () |
Cookbook Chapter 2: Working with Packed Structs.
This example demonstrates how to interface with C structs that have non-default alignment, typically specified with #pragma pack(1) or __attribute__((packed)). The infix signature language supports this with the !{...} syntax for 1-byte alignment, or !N:{...} for a specific N-byte alignment.
| int main | ( | void | ) |
|
static |