nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ downloader_file_size_get()

int downloader_file_size_get ( struct downloader * dl,
size_t * size )

#include <include/net/downloader.h>

Retrieve the size of the file being downloaded, in bytes.

The file size is only available after the download has begun.

Parameters
[in]dlDownloader instance.
[out]sizeFile size.
Returns
Zero on success, a negative error code otherwise.