BValueStorage Class Reference
[Data Model]

#include <support/MemoryStore.h>

Inheritance diagram for BValueStorage:

BMemoryStore BnStorage BByteStream BnInterface< IStorage > BnByteInput BnByteOutput BnByteSeekable IStorage BBinder BnInterface< IByteInput > BnInterface< IByteOutput > BnInterface< IByteSeekable > BBinder IByteSeekable BBinder IByteOutput BBinder IByteInput IBinder IInterface List of all members.

Detailed Description

This is an old implementation of byte streams on a value. It is flawed in some very significant ways, you should use the BValueDatum class instead.


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 ()


Constructor & Destructor Documentation

BValueStorage SValue value,
SLocker lock,
const sptr< SAtom > &  object
 

~BValueStorage  )  [protected, virtual]
 


Member Function Documentation

ssize_t ReadAtV off_t  position,
const struct iovec *  vector,
ssize_t  count
[virtual]
 

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.

status_t SetSize off_t  position  )  [virtual]
 

Set the total number of bytes in the store.

Reimplemented from BMemoryStore.

status_t Sync  )  [virtual]
 

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.

SValue Value  )  const
 

ssize_t WriteAtV off_t  position,
const struct iovec *  vector,
ssize_t  count
[virtual]
 

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.


The documentation for this class was generated from the following files: