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

📄 jbyteoutputstream.h

📁 b tree code for index in the database design
💻 H
字号:
//////////////////////////////////////////////////////////////////
///
/// (C) 2007: Yuriy Soroka <ysoroka@scalingweb.com>
///	      Anton Fedoruk <afedoruk@scalingweb.com>
///
//////////////////////////////////////////////////////////////////

#ifndef __ByteOutputStream_h__
#define __ByteOutputStream_h__

#include "JOutputStream.h"
#include <QByteArray>
#include <QBuffer>
#include <QIODevice>

// Class JByteInputStream

class JSTREAM_EXPORT JByteOutputStream : public JOutputStream
{
public:

	JByteOutputStream( QByteArray &array, QIODevice::OpenModeFlag mode = QIODevice::WriteOnly );

	inline virtual bool seek( gint64 position );

	inline virtual gint64 size();

	inline virtual gint64 pos() const;
	inline virtual void close();
	inline virtual void reset();

	using JOutputStream::write;

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

	void resize( gint64 newSize );

private:

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

private:

	QBuffer Buffer_;
};

#endif // __ByteOutputStream_h__

⌨️ 快捷键说明

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