AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions
alexaClientSDK::avsCommon::utils::stream Namespace Reference

Classes

class  Streambuf
 

Functions

std::unique_ptr< std::istream > streamFromData (const unsigned char *data, size_t length)
 

Function Documentation

◆ streamFromData()

std::unique_ptr<std::istream> alexaClientSDK::avsCommon::utils::stream::streamFromData ( const unsigned char *  data,
size_t  length 
)

Implementation converts a byte array into a stream. The data is never copied and multiple streams can be created to the same data source without affecting each other

Parameters
datapointer to the data to make into a stream
lengthlength of data

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