stream_status_t fs_stream_create_stream(
stream_t **out,
const fs_stream_args_t *args,
const fs_stream_cfg_t *cfg,
const fs_stream_env_t *env);
Create a file-backed stream instance.
cfg != NULL, cfg must point to a valid fs_stream_cfg_t.env != NULL, env must point to a valid fs_stream_env_t.out must not be NULL.args must not be NULL.cfg must not be NULL.env must not be NULL.args != NULL, args->path must not be NULL.args != NULL, args->path must not be empty.args != NULL, args->flags must not be zero.STREAM_STATUS_OK.args.*out.STREAM_STATUS_INVALID for invalid arguments.STREAM_STATUS_OOM if memory allocation fails.STREAM_STATUS_IO_ERROR if the underlying OSAL file operation fails.*out unchanged if out is not NULL.stream_destroy().