#include <future>
#include <memory>
#include <string>
#include <vector>
#include "mip/mip_export.h"
#include "mip/mip_namespace.h"
#include "mip/stream.h"
Go to the source code of this file.
|
MIP_API std::shared_ptr< mip::Stream > | CreateStreamFromBuffer (uint8_t *buffer, const int64_t size) |
| Creates an Stream from a buffer.
|
|
MIP_API std::shared_ptr< mip::Stream > | CreateStreamFromStdStream (const std::shared_ptr< std::iostream > &stdIOStream) |
| Creates a Stream from a std::iostream.
|
|
MIP_API std::shared_ptr< mip::Stream > | CreateStreamFromStdStream (const std::shared_ptr< std::istream > &stdIStream) |
| Creates a Stream from a std::istream.
|
|
MIP_API std::shared_ptr< mip::Stream > | CreateStreamFromStdStream (const std::shared_ptr< std::ostream > &stdOStream) |
| Creates a Stream from a std::ostream.
|
|
MIP_API std::vector< uint8_t > | ReadFromStream (const std::shared_ptr< mip::Stream > &stream) |
| Read all the bytes of stream.
|
|
◆ CreateStreamFromBuffer()
MIP_API std::shared_ptr< mip::Stream > CreateStreamFromBuffer |
( |
uint8_t * | buffer, |
|
|
const int64_t | size ) |
Creates an Stream from a buffer.
- Parameters
-
buffer | Pointer to a buffer |
- Returns
- size Size of buffer
◆ CreateStreamFromStdStream() [1/3]
MIP_API std::shared_ptr< mip::Stream > CreateStreamFromStdStream |
( |
const std::shared_ptr< std::iostream > & | stdIOStream | ) |
|
Creates a Stream from a std::iostream.
- Parameters
-
stdIOStream | Backing std::iostream |
- Returns
- Stream wrapping a std::iostream
◆ CreateStreamFromStdStream() [2/3]
MIP_API std::shared_ptr< mip::Stream > CreateStreamFromStdStream |
( |
const std::shared_ptr< std::istream > & | stdIStream | ) |
|
Creates a Stream from a std::istream.
- Parameters
-
stdIStream | Backing std::istream |
- Returns
- Stream wrapping a std::istream
◆ CreateStreamFromStdStream() [3/3]
MIP_API std::shared_ptr< mip::Stream > CreateStreamFromStdStream |
( |
const std::shared_ptr< std::ostream > & | stdOStream | ) |
|
Creates a Stream from a std::ostream.
- Parameters
-
stdOStream | Backing std::ostream |
- Returns
- Stream wrapping a std::ostream
◆ ReadFromStream()
MIP_API std::vector< uint8_t > ReadFromStream |
( |
const std::shared_ptr< mip::Stream > & | stream | ) |
|
Read all the bytes of stream.
- Parameters
-
- Returns
- a vector of bytes.