resonance 1.0.1
Loading...
Searching...
No Matches
obstream.h
Go to the documentation of this file.
1#pragma once
2
25class OBStream {
26public:
36 virtual OBStream &Write(const void *pSrc, int nSize) = 0;
37
49 virtual OBStream &Reset() = 0;
50
58 virtual int Fail() = 0;
59
72 virtual OBStream &WriteLE(const void *pSrc, int nSize);
73};
74
90OBStream &operator<<(OBStream &stream, int bValue);
91
104OBStream &operator<<(OBStream &stream, long nValue);
105
121OBStream &operator<<(OBStream &stream, unsigned long nValue);
Output half of the byte stream interface.
Definition obstream.h:25
virtual int Fail()=0
Test whether a transfer has failed.
virtual OBStream & Reset()=0
Discard everything written so far.
virtual OBStream & Write(const void *pSrc, int nSize)=0
Move nSize bytes out of pSrc.
virtual OBStream & WriteLE(const void *pSrc, int nSize)
Move nSize bytes out of pSrc through the virtual Write().
OBStream & operator<<(OBStream &stream, int bValue)
Write a truth value as one byte.