Software: Apache. PHP/8.3.27 uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364) Safe-mode: OFF (not secure) /usr/share/doc/libffi8/html/ drwxr-xr-x | |
| Viewing file: Select action/file-type: Next: Arrays, Unions, and Enumerations, Previous: Structures, Up: Types [Index] 2.3.3 Size and Alignment
You might expect that you can simply read these fields for a type that
has been laid out by
So, before examining these fields, it is safest to pass the
ffi_type *desired_type;
ffi_abi desired_abi;
…
ffi_cif cif;
if (ffi_prep_cif (&cif, desired_abi, 0, desired_type, NULL) == FFI_OK)
{
size_t size = desired_type->size;
unsigned short alignment = desired_type->alignment;
}
Next: Arrays, Unions, and Enumerations, Previous: Structures, Up: Types [Index] |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.01 ]-- |