#include <DataIO.h>
Inheritance diagram for BPositionIO:

BPositionIO is an abstract class that defines protocols for performing input/output operations. See BDataIO for information about this class.
Public Member Functions | |
| BPositionIO () | |
| virtual | ~BPositionIO () |
| virtual ssize_t | Read (void *buffer, size_t size) |
| virtual ssize_t | Write (const void *buffer, size_t size) |
| virtual ssize_t | ReadAt (off_t pos, void *buffer, size_t size)=0 |
| virtual ssize_t | WriteAt (off_t pos, const void *buffer, size_t size)=0 |
| virtual off_t | Seek (off_t position, uint32 seek_mode)=0 |
| virtual off_t | Position () const =0 |
| virtual status_t | SetSize (off_t size) |
|
|
Does nothing. Constructors in derived classes should initialize the object to default values—for example, set the current position to the beginning of the data. |
|
|
Does nothing. |
|
|
Implemented in BMetaPositionIO, BResourceItem, BFile, BBufferIO, BMallocIO, BMemoryIO, BStringIO, and BBitmapStream. |
|
||||||||||||
|
Copies size bytes of data from the object to the buf. It returns the number of bytes actually read (which may be 0) or an error code if somethinggoes wrong. Read() is implemented using Seek(), ReadAt(), and Position(), all of which are pure virtual functions. Implements BDataIO. Reimplemented in BMetaPositionIO, and BFile. |
|
||||||||||||||||
|
Implemented in BMetaPositionIO, BResourceItem, BFile, BBufferIO, BMallocIO, BMemoryIO, BStringIO, and BBitmapStream. |
|
||||||||||||
|
Implemented in BMetaPositionIO, BResourceItem, BFile, BBufferIO, BMallocIO, BMemoryIO, BStringIO, and BBitmapStream. |
|
|
Returns Reimplemented in BMetaPositionIO, BResourceItem, BFile, BBufferIO, BMallocIO, BMemoryIO, BStringIO, and BBitmapStream. |
|
||||||||||||
|
Copies size bytes of data from the object into the buf. It returns the number of bytes actually written (which may be 0) or an error code if something goes wrong. Write() is implemented using Seek(), Position(), and WriteAt(), all of which are pure virtual functions. Implements BDataIO. Reimplemented in BMetaPositionIO, and BFile. |
|
||||||||||||||||
|
Implemented in BMetaPositionIO, BResourceItem, BFile, BBufferIO, BMallocIO, BMemoryIO, BStringIO, and BBitmapStream. |