BOSS 8.0.0
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

◆ binostream

◆ binstreambuf

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 Calibration/facilities/include/facilities/binarystream.h.

141 {
142 int sz = sizeof( _Ty );
143 o.write( (const _Ch*)( &t ), sz );
144 return o;
145}
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 148 of file Calibration/facilities/include/facilities/binarystream.h.

148 {
149 int sz = sizeof( _Ty );
150 i.read( (_Ch*)( &t ), sz );
151 return i;
152}