stream.h (283B)
1 #pragma once 2 3 namespace networkLib 4 { 5 class Stream 6 { 7 public: 8 virtual void close() = 0; 9 virtual bool isValid() const = 0; 10 virtual bool flush() = 0; 11 12 virtual bool read(void* _buf, uint32_t _byteSize) = 0; 13 virtual bool write(const void* _buf, uint32_t _byteSize) = 0; 14 }; 15 }