AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::libcurlUtils::CallbackData Class Reference

#include <CallbackData.h>

Public Member Functions

 CallbackData ()=default
 
 CallbackData (const char *data)
 
size_t appendData (const char *data, size_t dataSize)
 
size_t appendData (const char *data)
 
void clearData ()
 
size_t getData (char *dataContainer, size_t dataSize)
 
size_t getSize ()
 

Detailed Description

Class to handle CURL callback data

Constructor & Destructor Documentation

◆ CallbackData() [1/2]

alexaClientSDK::avsCommon::utils::libcurlUtils::CallbackData::CallbackData ( )
default

Constructor.

◆ CallbackData() [2/2]

alexaClientSDK::avsCommon::utils::libcurlUtils::CallbackData::CallbackData ( const char *  data)

Constructor that initializes with a value.

Member Function Documentation

◆ appendData() [1/2]

size_t alexaClientSDK::avsCommon::utils::libcurlUtils::CallbackData::appendData ( const char *  data,
size_t  dataSize 
)

This will append new data to the existing instance.

Parameters
dataThe data that needs to be appended.
dataSizeThe size of the data to be appended.
Returns
The size of data that was appended.

◆ appendData() [2/2]

size_t alexaClientSDK::avsCommon::utils::libcurlUtils::CallbackData::appendData ( const char *  data)

This will append new data to the existing instance.

Parameters
dataThe data that needs to be appended.
Returns
The size of data that was appended.

◆ clearData()

void alexaClientSDK::avsCommon::utils::libcurlUtils::CallbackData::clearData ( )

This will clear the data.

◆ getData()

size_t alexaClientSDK::avsCommon::utils::libcurlUtils::CallbackData::getData ( char *  dataContainer,
size_t  dataSize 
)

Will return the callback data in the passed in container.

Parameters
dataContainerThe container in which the callback data will be returned.
dataSizeThe expected size of the data to be returned.
Returns
Size of the returned callback data.

◆ getSize()

size_t alexaClientSDK::avsCommon::utils::libcurlUtils::CallbackData::getSize ( )

Returns the callback data size.

Returns
Callback data size.

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0