BPipe Class Reference
[Data Model]

#include <support/Pipe.h>

Inheritance diagram for BPipe:

BnByteInput BnByteOutput BnInterface< IByteInput > BnInterface< IByteOutput > IByteInput BBinder IByteOutput BBinder IInterface IBinder IInterface IBinder SAtom SAtom SAtom SAtom List of all members.

Detailed Description

Pipe-like implementation of byte input and output streams.


Public Member Functions

 BPipe (size_t size)
virtual SValue Inspect (const sptr< IBinder > &caller, const SValue &which, uint32_t flags=0)
 Probe binder for interface information.
virtual ssize_t ReadV (const struct iovec *vector, ssize_t count, uint32_t flags=0)
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

ssize_t PrvRead (void *data, size_t size, uint32_t flags)
ssize_t PrvWrite (const void *data, size_t size, uint32_t flags)
status_t PrvWriteEOS ()
virtual ~BPipe ()


Constructor & Destructor Documentation

~BPipe  )  [protected, virtual]
 

BPipe size_t  size  ) 
 


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 >.

ssize_t PrvRead void *  data,
size_t  size,
uint32_t  flags
[protected]
 

ssize_t PrvWrite const void *  data,
size_t  size,
uint32_t  flags
[protected]
 

status_t PrvWriteEOS  )  [protected]
 

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

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: