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

◆ dfu_target_stream_bytes_buffered_get()

int dfu_target_stream_bytes_buffered_get ( size_t * out)

#include <include/dfu/dfu_target_stream.h>

Get the number of bytes buffered for the stream.

This can be used to determine how much data is currently buffered and not yet written to flash.

Parameters
[out]outReturns the number of bytes buffered.
Returns
Non-negative value if success, otherwise negative value if unable to get the buffered bytes