#include <support/MemoryStore.h>
Inheritance diagram for BValueStorage:
Public Member Functions | |
BValueStorage (SValue *value, SLocker *lock, const sptr< SAtom > &object) | |
virtual ssize_t | ReadAtV (off_t position, const struct iovec *vector, ssize_t count) |
Read the bytes described by iovec from location position in the storage. | |
virtual status_t | SetSize (off_t position) |
Set the total number of bytes in the store. | |
virtual status_t | Sync () |
Make sure all data in the stream is written to its physical device. | |
SValue | Value () const |
virtual ssize_t | WriteAtV (off_t position, const struct iovec *vector, ssize_t count) |
Write the bytes described by iovec at location position in the storage. | |
Protected Member Functions | |
virtual | ~BValueStorage () |
|
|
|
|
|
Read the bytes described by iovec from location position in the storage. Returns the number of bytes actually read, or a negative error code. Reimplemented from BMemoryStore. |
|
Set the total number of bytes in the store.
Reimplemented from BMemoryStore. |
|
Make sure all data in the stream is written to its physical device. Returns B_OK if the data is safely stored away, else an error code. Reimplemented from BMemoryStore. |
|
|
|
Write the bytes described by iovec at location position in the storage. Returns the number of bytes actually written, or a negative error code. Reimplemented from BMemoryStore. |