IByteSeekable Class Reference
[Data Model]

#include <support/IByteStream.h>

Inheritance diagram for IByteSeekable:

IInterface SAtom BnInterface< IByteSeekable > BpInterface< IByteSeekable > BnByteSeekable BBufferIO BByteStream BReadOnlyStream BStreamDatum::Stream BWriteOnlyStream BMemoryStore BDatabaseStore BMallocStore BValueStorage BStringIO List of all members.

Detailed Description

Abstract byte stream seeking interface.


Public Member Functions

virtual off_t Position () const =0
 Return the current location in the stream, or a negative error code.
virtual off_t Seek (off_t position, uint32_t seek_mode)=0
 Move to a new location in the stream.


Member Function Documentation

virtual off_t Position  )  const [pure virtual]
 

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

Implemented in BStreamDatum::Stream, BBufferIO, BByteStream, BReadOnlyStream, and BWriteOnlyStream.

virtual off_t Seek off_t  position,
uint32_t  seek_mode
[pure 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.

Implemented in BStreamDatum::Stream, BBufferIO, BByteStream, BReadOnlyStream, and BWriteOnlyStream.


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