peerplays-fc/include/fc/server.hpp

28 lines
438 B
C++
Raw Normal View History

2012-09-08 02:50:37 +00:00
class istream {
public:
template<typename T>
istream( T& s ) {
}
istream& read( char* buf, uint64_t s );
int64_t readsome( char* buf, uint64_t s );
bool eof()const;
private:
struct vtable {
void* (*read)(void*, char* buf, uint64_t s );
int64_t (*readsome)(void*, char* buf, uint64_t s );
bool (*eof)(void* )
};
vtable& _vtable;
void* _stream;
};