#include <support/IStorage.h>
Inheritance diagram for IStorage:
Public Member Functions | |
ssize_t | ReadAt (off_t position, void *buffer, size_t size) |
Convenience for reading a vector of one buffer. | |
virtual ssize_t | ReadAtV (off_t position, const struct iovec *vector, ssize_t count)=0 |
Read the bytes described by iovec from location position in the storage. | |
virtual status_t | SetSize (off_t size)=0 |
Set the total number of bytes in the store. | |
virtual off_t | Size () const =0 |
Return the total number of bytes in the store. | |
virtual status_t | Sync ()=0 |
Make sure all data in the storage is written to its physical device. | |
ssize_t | WriteAt (off_t position, const void *buffer, size_t size) |
Convenience for reading a vector of one buffer. | |
virtual ssize_t | WriteAtV (off_t position, const struct iovec *vector, ssize_t count)=0 |
Write the bytes described by iovec at location position in the storage. |
|
Convenience for reading a vector of one buffer.
|
|
Read the bytes described by iovec from location position in the storage. Returns the number of bytes actually read, or a negative error code. Implemented in BFile, BStreamDatum::Stream, BVFSFile, BMemoryStore, and BValueStorage. |
|
Set the total number of bytes in the store.
Implemented in BFile, BStreamDatum::Stream, BVFSFile, BMemoryStore, and BValueStorage. |
|
Return the total number of bytes in the store.
Implemented in BFile, BStreamDatum::Stream, BVFSFile, and BMemoryStore. |
|
Make sure all data in the storage is written to its physical device. Returns B_OK if the data is safely stored away, else an error code. Implemented in BFile, BStreamDatum::Stream, BVFSFile, BMemoryStore, and BValueStorage. |
|
Convenience for reading a vector of one buffer.
|
|
Write the bytes described by iovec at location position in the storage. Returns the number of bytes actually written, or a negative error code. Implemented in BFile, BStreamDatum::Stream, BVFSFile, BMemoryStore, and BValueStorage. |