Function uacpi_object_create_integer_safe
uacpi_status uacpi_object_create_integer_safe(uacpi_u64, uacpi_overflow_behavior, uacpi_object** out_obj)
Description
Same as uacpi_object_create_integer, but introduces additional ways to
control what happens if the provided integer is larger than 32-bits, and the AML code expects 32-bit integers.
- UACPI_OVERFLOW_ALLOW -> do nothing, same as the vanilla helper
- UACPI_OVERFLOW_TRUNCATE -> truncate the integer to 32-bits if it happens to be larger than allowed by the DSDT
- UACPI_OVERFLOW_DISALLOW -> fail object creation with UACPI_STATUS_INVALID_ARGUMENT if the provided value happens to be too large