CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
binarystream.h File Reference
#include "streamdef.h"

Go to the source code of this file.

Classes

class  basic_binstreambuf< _Ch, _Tr >
 
class  basic_binostream< _Ch, _Tr >
 
class  basic_binistream< _Ch, _Tr >
 

Typedefs

typedef basic_binostream< char > binostream
 
typedef basic_binistream< char > binistream
 
typedef basic_binstreambuf< char > binstreambuf
 

Functions

template<class _Ty , class _Ch , class _Tr >
basic_binostream< _Ch, _Tr > & operator<< (basic_binostream< _Ch, _Tr > &o, const _Ty t)
 
template<class _Ty , class _Ch , class _Tr >
basic_binistream< _Ch, _Tr > & operator>> (basic_binistream< _Ch, _Tr > &i, _Ty &t)
 

Typedef Documentation

◆ binistream

Definition at line 147 of file binarystream.h.

◆ binostream

Definition at line 146 of file binarystream.h.

◆ binstreambuf

Definition at line 148 of file binarystream.h.

Function Documentation

◆ operator<<()

template<class _Ty , class _Ch , class _Tr >
basic_binostream< _Ch, _Tr > & operator<< ( basic_binostream< _Ch, _Tr > & o,
const _Ty t )
inline

Definition at line 1 of file binarystream.h.

130 {
131 int sz = sizeof(_Ty);
132 o.write ((const _Ch*)(&t), sz);
133 return o;
134}
int t()
Definition t.c:1

◆ operator>>()

template<class _Ty , class _Ch , class _Tr >
basic_binistream< _Ch, _Tr > & operator>> ( basic_binistream< _Ch, _Tr > & i,
_Ty & t )
inline

Definition at line 137 of file binarystream.h.

137 {
138 int sz = sizeof(_Ty);
139 i.read ((_Ch*)(&t),sz);
140 return i;
141}