BWriteOnlyStream Class Reference
[Data Model]

#include <support/ByteStream.h>

Inheritance diagram for BWriteOnlyStream:

BnByteOutput BnByteSeekable BnInterface< IByteOutput > BnInterface< IByteSeekable > IByteOutput BBinder IByteSeekable BBinder IInterface IBinder IInterface IBinder SAtom SAtom SAtom SAtom List of all members.

Detailed Description

Write-only byte streams on top of an IStorage.

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


Public Member Functions

 BWriteOnlyStream (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 off_t Seek (off_t position, uint32_t seek_mode)
 Move to a new location in the stream.
virtual status_t Sync ()
 Make sure all data in the stream is written to its physical device.
virtual ssize_t WriteV (const struct iovec *vector, ssize_t count, uint32_t flags=0)

Protected Member Functions

 BWriteOnlyStream (IStorage *This)
virtual ~BWriteOnlyStream ()


Constructor & Destructor Documentation

BWriteOnlyStream const sptr< IStorage > &  store  ) 
 

BWriteOnlyStream IStorage This  )  [protected]
 

~BWriteOnlyStream  )  [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< IByteOutput >.

off_t Position  )  const [virtual]
 

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

Implements IByteSeekable.

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.

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.

Implements IByteOutput.

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


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