12345678910111213141516171819202122232425262728293031323334 |
- #include "config.h"
- #include "archive.h"
- ArchiveInStream::ArchiveInStream(std::istream& strm)
- : in(strm) {
- }
- bool ArchiveInStream::save() const {
- return false;
- }
- void ArchiveInStream::transfer(char* s, std::streamsize n) {
- in.read(s, n);
- }
- ArchiveOutStream::ArchiveOutStream(std::ostream& strm)
- : out(strm) {
- }
- bool ArchiveOutStream::save() const {
- return true;
- }
- void ArchiveOutStream::transfer(char* s, std::streamsize n) {
- out.write(s, n);
- }
|