YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
platform::MappedFile类 参考

只读内存映射文件。 更多...

#include <MemoryMapping.h>

Public 成员函数

 ~MappedFile ()
 
ystdex::byteGetPtr () const
 
size_t GetSize () const
 
 MappedFile (const_path_t)
 
template<class _tString >
 MappedFile (const _tString &filename)
 

Private 属性

int fd
 
struct::stat st
 
ystdex::byteaddr
 

详细描述

只读内存映射文件。

自从
build 324

在文件 MemoryMapping.h41 行定义.

构造及析构函数说明

platform::MappedFile::MappedFile ( const_path_t  path)
explicit
异常
std::runtime_error映射失败。

在文件 MemoryMapping.cpp75 行定义.

参考 addr , 以及 st.

template<class _tString >
platform::MappedFile::MappedFile ( const _tString &  filename)
inlineexplicit
自从
build 326

在文件 MemoryMapping.h56 行定义.

platform::MappedFile::~MappedFile ( )

在文件 MemoryMapping.cpp95 行定义.

参考 addr.

成员函数说明

ystdex::byte* platform::MappedFile::GetPtr ( ) const
inline

在文件 MemoryMapping.h63 行定义.

size_t platform::MappedFile::GetSize ( ) const

在文件 MemoryMapping.cpp107 行定义.

参考 st.

类成员变量说明

ystdex::byte* platform::MappedFile::addr
private

在文件 MemoryMapping.h46 行定义.

参考自 MappedFile() , 以及 ~MappedFile().

int platform::MappedFile::fd
private

在文件 MemoryMapping.h44 行定义.

struct ::stat platform::MappedFile::st
private

在文件 MemoryMapping.h45 行定义.

参考自 GetSize() , 以及 MappedFile().


该类的文档由以下文件生成: