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

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

#include <MemoryMapping.h>

Public 成员函数

 ~MappedFile ()
 
 DefGetter (const ynothrow, ystdex::byte *, Ptr, addr) DefGetter(const ynothrow
 
 MappedFile (const char *)
 
template<class _tString >
 MappedFile (const _tString &filename)
 

Public 属性

 Size
 

Private 属性

int fd
 
std::uint64_t size
 
ystdex::byteaddr
 

详细描述

只读内存映射文件。

注解
对于不支持内存映射的实现,使用 POSIX 标准 IO 模拟。
自从
build 324

在文件 MemoryMapping.h42 行定义.

构造及析构函数说明

platform::MappedFile::MappedFile ( const char *  path)
explicit
异常
FileOperationFailure映射失败。
自从
build 412

在文件 MemoryMapping.cpp76 行定义.

参考 platform::GetFileSizeOf().

函数调用图:

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

在文件 MemoryMapping.h58 行定义.

platform::MappedFile::~MappedFile ( )

在文件 MemoryMapping.cpp100 行定义.

参考 addr , 以及 size.

成员函数说明

platform::MappedFile::DefGetter ( const ynothrow  ,
ystdex::byte ,
Ptr  ,
addr   
) const
自从
build 413
build 475

类成员变量说明

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

在文件 MemoryMapping.h47 行定义.

参考自 ~MappedFile().

int platform::MappedFile::fd
private

在文件 MemoryMapping.h45 行定义.

std::uint64_t platform::MappedFile::size
private

在文件 MemoryMapping.h46 行定义.

参考自 ~MappedFile().

platform::MappedFile::Size

在文件 MemoryMapping.h67 行定义.


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