IByteInput Class Reference
[Data Model]

#include <support/IByteStream.h>

Inheritance diagram for IByteInput:

IInterface SAtom BnInterface< IByteInput > BpInterface< IByteInput > BnByteInput BBufferIO BByteStream BIOSStream BKernelIStr BNullStream BPipe BReadOnlyStream BStreamDatum::Stream BWindowsInputStream List of all members.

Detailed Description

Abstract byte stream input (read) interface.


Public Member Functions

ssize_t Read (void *buffer, size_t size, uint32_t flags=0)
 Convenience for reading a vector of one buffer.
virtual ssize_t ReadV (const iovec *vector, ssize_t count, uint32_t flags=0)=0
 Read the bytes described by "iovec" from the stream.


Member Function Documentation

ssize_t Read void *  buffer,
size_t  size,
uint32_t  flags = 0
[inline]
 

Convenience for reading a vector of one buffer.

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

Read the bytes described by "iovec" from the stream.

Returns the number of bytes actually read, or a negative error code. A NULL 'vector' is valid if 'count' is <= 0, in which case 'count' is returned.


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