#include <buffer.hpp>
Public Member Functions | |
const_buffer (void const *data, saga::ssize_t size) | |
Creates an I/O buffer. | |
~const_buffer () | |
Destroys a buffer. | |
saga::ssize_t | get_size () const |
Retrieves the current value for size. | |
void const * | get_data () const |
Retrieves the buffer data. | |
void | close (double timeout=0.0) |
Closes the object. |
The SAGA API includes a number of calls which perform byte-level I/O operations, e.g. read()/write() on files and streams, and call() on rpc instances. Future SAGA API extensions are expected to increase the number of I/O methods. The saga::buffer class encapsulates a sequence of bytes to be used for such I/O operations - that allows for uniform I/O syntax and semantics over the various SAGA API packages.
saga::const_buffer::const_buffer | ( | void const * | data, | |
saga::ssize_t | size | |||
) |
Creates an I/O buffer.
data | Data to be used | |
size | Size of data to be used. |
saga::const_buffer::~const_buffer | ( | ) |
Destroys a buffer.
saga::ssize_t saga::const_buffer::get_size | ( | ) | const |
Retrieves the current value for size.
void const * saga::const_buffer::get_data | ( | ) | const |
Retrieves the buffer data.
void saga::const_buffer::close | ( | double | timeout = 0.0 |
) |