C++ Rest SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Public Types | Static Public Member Functions | List of all members
Concurrency::streams::rawptr_stream< _CharType > Class Template Reference

The rawptr_stream class is used to create memory-backed streams that support writing or reading sequences of characters to / from a fixed-size block. More...

#include <rawptrstream.h>

Public Types

typedef _CharType char_type
 
typedef rawptr_buffer< _CharType > buffer_type
 

Static Public Member Functions

static concurrency::streams::basic_istream< char_type > open_istream (const char_type *data, size_t size)
 Create a rawptr-stream given a pointer to a read-only memory block and the size of the block. More...
 
static concurrency::streams::basic_istream< char_type > open_istream (char_type *data, size_t size)
 Create a rawptr-stream given a pointer to a writable memory block and the size of the block. More...
 
static concurrency::streams::basic_ostream< char_type > open_ostream (char_type *data, size_t size)
 Create a rawptr-stream given a pointer to a writable memory block and the size of the block. More...
 

Detailed Description

template<typename _CharType>
class Concurrency::streams::rawptr_stream< _CharType >

The rawptr_stream class is used to create memory-backed streams that support writing or reading sequences of characters to / from a fixed-size block.

Template Parameters
_CharTypeThe data type of the basic element of the rawptr_stream.

Member Function Documentation

template<typename _CharType >
static concurrency::streams::basic_istream<char_type> Concurrency::streams::rawptr_stream< _CharType >::open_istream ( const char_type *  data,
size_t  size 
)
inlinestatic

Create a rawptr-stream given a pointer to a read-only memory block and the size of the block.

Parameters
dataThe address (pointer to) the memory block.
sizeThe memory block size, measured in number of characters.
Returns
An opened input stream.
template<typename _CharType >
static concurrency::streams::basic_istream<char_type> Concurrency::streams::rawptr_stream< _CharType >::open_istream ( char_type *  data,
size_t  size 
)
inlinestatic

Create a rawptr-stream given a pointer to a writable memory block and the size of the block.

Parameters
dataThe address (pointer to) the memory block.
sizeThe memory block size, measured in number of characters.
Returns
An opened input stream.
template<typename _CharType >
static concurrency::streams::basic_ostream<char_type> Concurrency::streams::rawptr_stream< _CharType >::open_ostream ( char_type *  data,
size_t  size 
)
inlinestatic

Create a rawptr-stream given a pointer to a writable memory block and the size of the block.

Parameters
dataThe address (pointer to) the memory block.
sizeThe memory block size, measured in number of characters.
Returns
An opened output stream.

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