BReadOnlyStream Class Reference
[Data Model]

#include <support/ByteStream.h>

Inheritance diagram for BReadOnlyStream:

BnByteInput BnByteSeekable BnInterface< IByteInput > BnInterface< IByteSeekable > IByteInput BBinder IByteSeekable BBinder IInterface IBinder IInterface IBinder SAtom SAtom SAtom SAtom List of all members.

Detailed Description

Read-only byte streams on top of an IStorage.

Implements IByteInput and IByteSeekable on top of a random access IStorage interface.


Public Member Functions

 BReadOnlyStream (const sptr< IStorage > &store)
virtual SValue Inspect (const sptr< IBinder > &caller, const SValue &which, uint32_t flags=0)
 Probe binder for interface information.
virtual off_t Position () const
 Return the current location in the stream, or a negative error code.
virtual ssize_t ReadV (const struct iovec *vector, ssize_t count, uint32_t flags=0)
virtual off_t Seek (off_t position, uint32_t seek_mode)
 Move to a new location in the stream.

Protected Member Functions

 BReadOnlyStream (IStorage *This)
virtual ~BReadOnlyStream ()


Constructor & Destructor Documentation

BReadOnlyStream const sptr< IStorage > &  store  ) 
 

BReadOnlyStream IStorage This  )  [protected]
 

~BReadOnlyStream  )  [protected, virtual]
 


Member Function Documentation

SValue Inspect const sptr< IBinder > &  caller,
const SValue which,
uint32_t  flags = 0
[virtual]
 

Probe binder for interface information.

Return interfaces implemented by this binder object that are requested by which. This is a composition of all interfaces, expressed as { descriptor -> binder } mappings, which are selected through which.

Much more information on Inspect() can be found at Binder Inspect() Details.

Reimplemented from BnInterface< IByteInput >.

off_t Position  )  const [virtual]
 

Return the current location in the stream, or a negative error code.

Implements IByteSeekable.

ssize_t ReadV const struct iovec *  vector,
ssize_t  count,
uint32_t  flags = 0
[virtual]
 

off_t Seek off_t  position,
uint32_t  seek_mode
[virtual]
 

Move to a new location in the stream.

The seek_mode can be either SEEK_SET, SEEK_END, or SEEK_CUR. Returns the new location, or a negative error code.

Implements IByteSeekable.


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