Implementation of file based on UNIX syscalls.
More...
#include <syscall_file.h>
List of all members.
Public Member Functions |
| syscall_file (const std::string &filename, int mode, int disk=-1) |
| constructs file object
|
request_ptr | aread (void *buffer, stxxl::int64 pos, size_t bytes, completion_handler on_cmpl) |
| Schedules asynchronous read request to the file.
|
request_ptr | awrite (void *buffer, stxxl::int64 pos, size_t bytes, completion_handler on_cmpl) |
| Schedules asynchronous write request to the file.
|
stxxl::int64 | size () |
| Returns size of the file.
|
void | set_size (stxxl::int64 newsize) |
| Changes the size of the file.
|
Additional Inherited Members |
Detailed Description
Implementation of file based on UNIX syscalls.
Constructor & Destructor Documentation
syscall_file::syscall_file |
( |
const std::string & |
filename, |
|
|
int |
mode, |
|
|
int |
disk = -1 |
|
) |
| |
constructs file object
- Parameters:
-
- Attention:
- filename must be resided at memory disk partition
- Parameters:
-
mode | open mode, see stxxl::file::open_modes |
disk | disk(file) identifier |
Member Function Documentation
Schedules asynchronous read request to the file.
- Parameters:
-
buffer | pointer to memory buffer to read into |
pos | starting file position to read |
bytes | number of bytes to transfer |
on_cmpl | I/O completion handler |
- Returns:
request_ptr
object, that can be used to track the status of the operation
Implements file.
References request_ptr::get().
Schedules asynchronous write request to the file.
- Parameters:
-
buffer | pointer to memory buffer to write from |
pos | starting file position to write |
bytes | number of bytes to transfer |
on_cmpl | I/O completion handler |
- Returns:
request_ptr
object, that can be used to track the status of the operation
Implements file.
References request_ptr::get().
The documentation for this class was generated from the following files: