Read up to nmemb elements of size size from an open OSAL_FILE into ptr through the active OSAL file backend.
ptr != NULL, then ptr designates writable storage large enough for the attempted read.stream != NULL, then stream designates a valid OSAL_FILE.stream != NULL, then stream has been opened with a mode compatible with reading.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 read error when a backend read failure occurs.osal_file_status_t status domain.stream.stream on both success and failure.nmemb does not by itself distinguish end-of-file from failure; callers must inspect *st.nmemb == 0, the operation returns 0 and sets *st to OSAL_FILE_STATUS_OK.