Writer.cpp 266 B

1234567891011121314151617
  1. #include "Writer.h"
  2. using namespace Framework;
  3. OStreamWriter::OStreamWriter(std::ostream& out)
  4. : out(out)
  5. {}
  6. void OStreamWriter::schreibe(const char* bytes, int len)
  7. {
  8. out.write(bytes, (__int64)len);
  9. }
  10. bool OStreamWriter::istEnde() const
  11. {
  12. return out.eof();
  13. }