1 #ifndef __INPUTSTREAM_H__ 2 #define __INPUTSTREAM_H__ 3 4 #include <cstddef> 5 6 struct InputStream { 7 virtual int read (void* ptr, size_t len) = 0; 8 }; 9 10 #endif //__INPUTSTREAM_H__ 11