Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
stream.h File Reference
#include "rapidjson.h"
#include "encodings.h"
Include dependency graph for stream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StreamTraits< Stream >
 Provides additional information for stream. More...
 
class  GenericStreamWrapper< InputStream, Encoding >
 A Stream Wrapper. More...
 
struct  GenericStringStream< Encoding >
 Read-only string stream. More...
 
struct  StreamTraits< GenericStringStream< Encoding > >
 
struct  GenericInsituStringStream< Encoding >
 A read-write string stream. More...
 
struct  StreamTraits< GenericInsituStringStream< Encoding > >
 

Typedefs

typedef GenericStringStream< UTF8<> > StringStream
 String stream with UTF8 encoding.
 
typedef GenericInsituStringStream< UTF8<> > InsituStringStream
 Insitu string stream with UTF8 encoding.
 

Functions

template<typename Stream >
void PutReserve (Stream &stream, size_t count)
 Reserve n characters for writing to a stream.
 
template<typename Stream >
void PutUnsafe (Stream &stream, typename Stream::Ch c)
 Write character to a stream, presuming buffer is reserved.
 
template<typename Stream , typename Ch >
void PutN (Stream &stream, Ch c, size_t n)
 Put N copies of a character to a stream.
 

Typedef Documentation

◆ InsituStringStream

Definition at line 219 of file stream.h.

◆ StringStream

Definition at line 178 of file stream.h.

Function Documentation

◆ PutN()

template<typename Stream , typename Ch >
void PutN ( Stream & stream,
Ch c,
size_t n )
inline

Definition at line 97 of file stream.h.

97 {
98 PutReserve(stream, n);
99 for (size_t i = 0; i < n; i++)
100 PutUnsafe(stream, c);
101}
void PutReserve(Stream &stream, size_t count)
Reserve n characters for writing to a stream.
Definition stream.h:84
void PutUnsafe(Stream &stream, typename Stream::Ch c)
Write character to a stream, presuming buffer is reserved.
Definition stream.h:91
Here is the call graph for this function:

◆ PutReserve()

template<typename Stream >
void PutReserve ( Stream & stream,
size_t count )
inline

Definition at line 84 of file stream.h.

84 {
85 (void)stream;
86 (void)count;
87}
int * count
Here is the caller graph for this function:

◆ PutUnsafe()

template<typename Stream >
void PutUnsafe ( Stream & stream,
typename Stream::Ch c )
inline

Definition at line 91 of file stream.h.

91 {
92 stream.Put(c);
93}
Here is the caller graph for this function: