⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jbytestream.h

📁 b tree code for index in the database design
💻 H
字号:
#ifndef __GByteStream_h__
#define __GByteStream_h__

#include "GStream.h"
#include <QBuffer>

class GByteStream : public GStream
{
public:

	GByteStream();
	virtual ~GByteStream();

	inline virtual gint64 size();
	inline virtual void close();
	inline virtual bool seek( gint64 position );
	inline virtual gint64 pos() const;
	inline virtual void reset();

	// Unhide inherited read method
	using GStream::write;

	virtual gint64 write( const char* pBuffer, gint64 bufLen );

	// Unhide inherited read method
	using GStream::read;

	virtual gint64 read(char* pBuffer, gint64 bufLen);

	inline virtual bool atEnd() const;

	void resize( gint64 newSize );

private:

	GByteStream( const GByteStream& rhs );				// cannot be copied
	GByteStream& operator=( const GByteStream& rhs );	// nor assigned

protected:

	QBuffer bbuf_;
};

#endif // __GByteStream_h__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -