Write up to nmemb elements of size size from ptr to an open OSAL_FILE through the active OSAL file backend.
ptr != NULL, then ptr designates readable storage large enough for the attempted write.stream != NULL, then stream designates a valid OSAL_FILE.stream != NULL, then stream has been opened with a mode compatible with writing.st != NULL, then st designates writable storage for one osal_file_status_t.ptr must not be NULL.stream must not be NULL.st must not be NULL.ptr.*st to OSAL_FILE_STATUS_OK.0 and sets *st to OSAL_FILE_STATUS_INVALID for invalid arguments.nmemb and sets *st to a non-OK osal_file_status_t representing the backend write error when a backend write failure occurs.osal_file_status_t status domain.stream.stream on both success and failure.size == 0 or nmemb == 0, the operation returns 0 and sets *st to OSAL_FILE_STATUS_OK.