fileinputstream.h
来自「这个是symbian下的一个蛮庞大的3D游戏源代码!对于学习3D开发的人有很大的」· C头文件 代码 · 共 67 行
H
67 行
#ifndef _IO_FILEINPUTSTREAM_H
#define _IO_FILEINPUTSTREAM_H
#include <io/InputStream.h>
namespace io
{
/**
* FileInputStream reads bytes from a standard file.
*
* @ingroup io
*/
class FileInputStream :
public InputStream
{
public:
/**
* Opens a file input stream.
*/
explicit FileInputStream( const char* filename );
///
~FileInputStream();
/**
* Tries to read specified number of bytes from the stream.
* Doesn't block the caller if specified number of bytes isn't available.
*
* @return Number of bytes actually read.
*/
int read( void* data, int size );
/**
* Returns the number of bytes that can be read from the stream without blocking.
*/
int available() const;
lang::String toString() const {return m_name;}
static void expandPath( char* buf, int bufsize, const char* fname );
private:
lang::String m_name;
#ifdef __ee__
int m_fh;
#else
void* m_fh;
#endif
FileInputStream();
FileInputStream( const FileInputStream& );
FileInputStream& operator=( const FileInputStream& );
};
} // io
#endif // _IO_FILEINPUTSTREAM_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?