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

📄 spnkfile.hpp

📁 linux 下的程序源代码
💻 HPP
字号:
/* * Copyright 2008 Stephen Liu * For license terms, see the file COPYING along with this library. */#ifndef __spnkfile_hpp__#define __spnkfile_hpp__#include <sys/types.h>class SP_NKFileReader {public:	SP_NKFileReader();	~SP_NKFileReader();	// @return 0 : OK, -1 : Fail	int read( const char * file );	const char * getBuffer() const;	char * takeBuffer();	size_t getSize() const;private:	char * mBuffer;	size_t mSize;};class SP_NKFileUtils {public:	// @return > 0 : read how many bytes, -1 : Fail	static int readn( int fd, void * buff, size_t len );	// @return > 0 : write how many bytes, -1 : Fail	static int writen( int fd, const void * buff, size_t len );private:	SP_NKFileUtils();};#endif

⌨️ 快捷键说明

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