FFI Union Type
Arguments
- name
Character name of the type
- size
Integer size in bytes
- ref
External pointer to ffi_type
- fields
Character vector of field names
- field_types
List of FFIType objects for each field
- pack
Integer packing alignment (NULL for default/natural alignment)
- has_packed_change
Logical indicating if packing changes alignment from natural. When TRUE, the union cannot be passed by value to C functions (only pointers work) because libffi doesn't support packed unions.