qCC_io  version 2.5.4 (Qt) - 19 Apr 2014
 All Classes Functions Variables Typedefs
Public Member Functions | List of all members
InputMemoryFile Class Reference

Read-only memory-mapped file wrapper. More...

#include <InputMemoryFile.h>

Public Member Functions

 InputMemoryFile (const char *pathname)
 
const char * data () const
 
size_t size () const
 

Detailed Description

Read-only memory-mapped file wrapper.

It handles only files that can be wholly loaded into the address space of the process. The constructor opens the file, the destructor closes it. The "data" function returns a pointer to the beginning of the file, if the file has been successfully opened, otherwise it returns 0. The "size" function returns the length of the file in bytes, if the file has been successfully opened, otherwise it returns 0.


The documentation for this class was generated from the following files: