#include <support/ByteStream.h>
Inheritance diagram for BWriteOnlyStream:
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 () |
|
|
|
|
|
|
|
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 >. |
|
Return the current location in the stream, or a negative error code.
Implements IByteSeekable. |
|
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. |
|
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. |
|
|