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

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

#include <MemoryMapping.h>

Public 成员函数

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

Private 属性

int fd
 
struct::stat st
 
ystdex::byte * addr
 

详细描述

只读内存映射文件。

自从
build 324

在文件 MemoryMapping.h 第 41 行定义.

构造及析构函数说明

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

在文件 MemoryMapping.cpp 第 75 行定义.

参考 addr , 以及 st.

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

在文件 MemoryMapping.h 第 56 行定义.

platform::MappedFile::~MappedFile ( )

在文件 MemoryMapping.cpp 第 95 行定义.

参考 addr.

成员函数说明

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

在文件 MemoryMapping.h 第 63 行定义.

size_t platform::MappedFile::GetSize ( ) const

在文件 MemoryMapping.cpp 第 107 行定义.

参考 st.

类成员变量说明

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

在文件 MemoryMapping.h 第 46 行定义.

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

int platform::MappedFile::fd
private

在文件 MemoryMapping.h 第 44 行定义.

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

在文件 MemoryMapping.h 第 45 行定义.

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


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