![]() |
SDK
2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
|
#include <DownloadBinaryDelegate.h>
Classes | |
struct | ErrorInfo |
Public Types | |
using | Success = DownloadBinarySuccess |
using | Error = TransferError |
Public Member Functions | |
virtual void | onDownloadBinarySuccess (cbe::Object &&object, std::unique_ptr< char[]> data)=0 |
virtual void | onDownloadBinaryError (cbe::delegate::TransferError &&transferError, cbe::util::Context &&context)=0 |
virtual void | onChunkReceived (cbe::Object &&object, std::uint64_t received, std::uint64_t total) |
Delegate class for the asynchronous version of method:
|
virtual |
Called when a chunk of data has been received.
object | Object associated with current download. |
received | Size, in number of bytes, of the received chunk. |
total | Total number of bytes received so far. |
|
pure virtual |
Called if an error is encountered.
|
pure virtual |
Called upon successful Download.
object | Instance of cbe::Object that is being downloaded. |
data | The downloaded data of the object. The provided memory is an array of bytes ( char ) dynamically allocated by the SDK, and managed by the std::unique_ptr . So, no further precautions needed concerning the the disposal of this memory. |