#include <storage/ValueDatum.h>
Inheritance diagram for BValueDatum:

This class is a complete implementation of IDatum on top of an SValue. It uses the memory model of BStreamData to perform read and write operations on the SValue it contains.
Bookkeeping | |
| Creation, destruction, locking, etc. | |
| BValueDatum (const SContext &context, const SValue &value, uint32_t mode=IDatum::READ_WRITE) | |
| BValueDatum (const SValue &value, uint32_t mode=IDatum::READ_WRITE) | |
| BValueDatum (const SContext &context, uint32_t mode=IDatum::READ_WRITE) | |
| BValueDatum (uint32_t mode=IDatum::READ_WRITE) | |
| virtual | ~BValueDatum () |
BStreamDatum Implementation | |
| Provide BStreamDatum implementation to create a concrete class. This implements both the stream and memory models, for best performance. | |
| virtual void | FinishReadingLocked (const sptr< Stream > &stream, const void *data) const |
| Clean up from reading (currently a noop). | |
| virtual void | FinishWritingLocked (const sptr< Stream > &stream, void *data) |
| Finish editing the value. | |
| virtual off_t | SizeLocked () const |
| Returns the current number of bytes in the value. | |
| virtual const void * | StartReadingLocked (const sptr< Stream > &stream, off_t position, ssize_t *inoutSize, uint32_t flags) const |
| Return bytes in the value for reading. | |
| virtual void * | StartWritingLocked (const sptr< Stream > &stream, off_t position, ssize_t *inoutSize, uint32_t flags) |
| Edit bytes inside the value, returning the requested starting address. | |
| virtual status_t | StoreSizeLocked (off_t size) |
| Changes the size of the value. | |
| virtual status_t | StoreValueLocked (const SValue &value) |
| Changes the entire value. | |
| virtual status_t | StoreValueTypeLocked (uint32_t type) |
| Changes the type code of the value. | |
| virtual SValue | ValueLocked () const |
| Returns the current value. | |
| virtual uint32_t | ValueTypeLocked () const |
| Returns the current type code of the value. | |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
Clean up from reading (currently a noop).
Reimplemented from BStreamDatum. |
|
||||||||||||
|
Finish editing the value.
Reimplemented from BStreamDatum. |
|
|
Returns the current number of bytes in the value.
Implements BStreamDatum. |
|
||||||||||||||||||||
|
Return bytes in the value for reading.
Reimplemented from BStreamDatum. |
|
||||||||||||||||||||
|
Edit bytes inside the value, returning the requested starting address.
Reimplemented from BStreamDatum. |
|
|
Changes the size of the value.
Implements BStreamDatum. |
|
|
Changes the entire value.
Reimplemented from BStreamDatum. |
|
|
Changes the type code of the value.
Reimplemented from BStreamDatum. |
|
|
Returns the current value.
Reimplemented from BStreamDatum. |
|
|
Returns the current type code of the value.
Reimplemented from BStreamDatum. |