Abstract interface for objects that provide read and write access to data. More...
|This constructor does nothing. |
|This destructor does nothing. |
|virtual ssize_t||Read (void *buffer, size_t size)=0|
|Pure virtual to read data. |
|virtual ssize_t||Write (const void *buffer, size_t size)=0|
|Pure virtual to write data. |
Abstract interface for objects that provide read and write access to data.
The interface provided by this class applies to objects or data that are limited to reading and writing data. Classes derived from this class should re-implement both the Read() and Write() method from this class.
Candidates of types of data or objects that should be derived from this class are probably broadcasting media streams (which don't support reading at a certain point in the data) or network streams that output data continuously. Objects and data that support more advanced operations like seeking or reading at writing at defined positions should derive their classes from BPositionIO, which inherits this class.
|ssize_t BDataIO::Read||(||void *||buffer,|
|ssize_t BDataIO::Write||(||const void *||buffer,|