|
SAGA C++ API 1.5.3
|
The iovec class inherits the saga::buffer class, and three additional state attributes: offset, len in and len out. More...
#include <iovec.hpp>

Public Member Functions | |
| iovec (void *data=0, saga::ssize_t size=-1, saga::ssize_t len_in=-1, buffer_deleter cb=default_buffer_deleter) | |
| Creates an iovec instance. | |
| ~iovec () | |
| Destroys an iovec instance. | |
| void | set_len_in (saga::ssize_t len_in) |
| Sets len_in. | |
| saga::ssize_t | get_len_in () const |
| Retrieves the current value for len_in. | |
| saga::ssize_t | get_len_out () const |
| Retrieves the current value for len_out. | |
Protected Member Functions | |
| TR1::shared_ptr < saga::impl::iovec > | get_impl_sp (void) const |
| @ /** These methods are not within API scope */ | |
| saga::impl::iovec * | get_impl (void) const |
The iovec class inherits the saga::buffer class, and three additional state attributes: offset, len in and len out.
With that addition, the new class can be used very much the same way as the iovec structure defined by POSIX for readv/writev, with the buffer len_in being interpreted as the POSIX iov_len, i.e. the number of bytes to read/write.
| saga::filesystem::iovec::iovec | ( | void * | data = 0, |
| saga::ssize_t | size = -1, |
||
| saga::ssize_t | len_in = -1, |
||
| buffer_deleter | cb = default_buffer_deleter |
||
| ) |
Creates an iovec instance.
| saga::filesystem::iovec::~iovec | ( | ) |
Destroys an iovec instance.
| TR1::shared_ptr< saga::impl::iovec > saga::filesystem::iovec::get_impl_sp | ( | void | ) | const [protected] |
@ /** These methods are not within API scope */
Reimplemented from saga::mutable_buffer.
| saga::impl::iovec * saga::filesystem::iovec::get_impl | ( | void | ) | const [protected] |
Reimplemented from saga::mutable_buffer.
Referenced by get_len_in(), get_len_out(), and set_len_in().
| void saga::filesystem::iovec::set_len_in | ( | saga::ssize_t | len_in | ) |
Sets len_in.
References get_impl().
| saga::ssize_t saga::filesystem::iovec::get_len_in | ( | ) | const |
Retrieves the current value for len_in.
References get_impl().
| saga::ssize_t saga::filesystem::iovec::get_len_out | ( | ) | const |
Retrieves the current value for len_out.
References get_impl().