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
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
-
_CharType The data type of the basic element of the
rawptr_stream
.
Member Function Documentation
template<typename _CharType >
size_t
size
)
inlinestatic
Create a rawptr-stream given a pointer to a read-only memory block and the size of the block.
- Parameters
-
data The address (pointer to) the memory block.
size The memory block size, measured in number of characters.
- Returns
- An opened input stream.
template<typename _CharType >
size_t
size
)
inlinestatic
Create a rawptr-stream given a pointer to a writable memory block and the size of the block.
- Parameters
-
data The address (pointer to) the memory block.
size The memory block size, measured in number of characters.
- Returns
- An opened input stream.
template<typename _CharType >
size_t
size
)
inlinestatic
Create a rawptr-stream given a pointer to a writable memory block and the size of the block.
- Parameters
-
data The address (pointer to) the memory block.
size The memory block size, measured in number of characters.
- Returns
- An opened output stream.
The documentation for this class was generated from the following file: