13 #ifndef __ISSTREAM_H__ 14 #define __ISSTREAM_H__ 45 virtual int Read(
void* buffer,
int count) { (void)buffer; (void)count;
return -1; }
53 virtual int Write(
const void* buffer,
int count) { (void)buffer; (void)count;
return -1; }
59 virtual int Flush() {
return -1; }
65 virtual int Close() {
return -1; }
89 bool Open(
const std::string& path,
const char* mode);
137 #endif // __BASE_STREAM_H__
size_t count(InputIterator first, InputIterator last, T const &item)
virtual long long GetBytesAvailableToRead()
virtual int Read(void *buffer, int count)
virtual int Write(const void *buffer, int count)