/* */ #ifndef _D_BINARY_STREAM_H_ #define _D_BINARY_STREAM_H_ #include "common.h" #include "DlAbortEx.h" class BinaryStream { public: virtual ~BinaryStream() {} virtual void writeData(const unsigned char* data, int32_t len, int64_t offset) = 0; virtual int32_t readData(unsigned char* data, int32_t len, int64_t offset) = 0; }; typedef SharedHandle BinaryStreamHandle; #endif // _D_BINARY_STREAM_H_