This is used by the IAP code.
Since the functions are simple make them inline functions. This provides a small code size saving.