#include <DownloadStream.h>
◆ ~DownloadStream()
virtual alexaClientSDK::acsdkAssets::common::DownloadStream::~DownloadStream |
( |
| ) |
|
|
virtual |
◆ create()
static std::shared_ptr<DownloadStream> alexaClientSDK::acsdkAssets::common::DownloadStream::create |
( |
const std::string & |
path, |
|
|
size_t |
expectedSize |
|
) |
| |
|
static |
Create download file object with expected size
- Parameters
-
path | file path to write to |
expectedSize | expected download file size |
- Returns
- downloadStream object or null if file path invalid
◆ downloadSucceeded()
bool alexaClientSDK::acsdkAssets::common::DownloadStream::downloadSucceeded |
( |
| ) |
const |
◆ write()
bool alexaClientSDK::acsdkAssets::common::DownloadStream::write |
( |
const char * |
data, |
|
|
size_t |
size |
|
) |
| |
Write data chunk into the output stream
- Parameters
-
data | pointer for data chunk |
size | number of bytes in the data chunk |
- Returns
- true when successful, false for invalid argument or if accumulated size exceeds expectedSize
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/capabilities/DavsClient/acsdkAssetsCommon/include/acsdkAssetsCommon/DownloadStream.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0