ZStreamRWPos Class Reference
[Streams]

Base interface for positionable read/write streams. More...

#include <ZStream.h>

Inheritance diagram for ZStreamRWPos:

ZStreamRPos ZStreamWPos ZStreamU ZStreamW ZStreamR ZStreamRWPos_PageBuffered ZStreamRWPos_RAM ZStreamRWPos_String List of all members.

Public Member Functions

From ZStreamRPos/ZStreamWPos
Re-declared here for disambiguation.

uint64 GetPosition () const
void SetPosition (uint64 iPosition) const
uint64 GetSize () const
virtual uint64 Imp_GetPosition ()=0
virtual void Imp_SetPosition (uint64 iPosition)=0
virtual uint64 Imp_GetSize ()=0
From ZStreamWPos
Re-declared here for disambiguation.

virtual void Imp_SetSize (uint64 iSize)=0

Detailed Description

Base interface for positionable read/write streams.

ZStreamRWPos inherits from both ZStreamRPos and ZStreamWPos without extending either protocol. It serves as a standard designation for an entity that is considered to contain a list of bytes that can be both read and written to. Calls to read and write are fulfilled at the current position, and the current position is updated. The position can be set to any value from 0 to 2^64-1. If the position is set beyond the end of the current list of bytes, the list is augmented with bytes of arbitrary value to match the new position. The size can be set to any value from 0 to 2^64-1 bytes. If the size is set to a value less than the current position then the current position is reduced to match.


Member Function Documentation

uint64 ZStreamRWPos::GetPosition (  )  const [inline]

Return the stream's current position.

Reimplemented from ZStreamRPos.

void ZStreamRWPos::SetPosition ( uint64  iPosition  )  const [inline]

Set the stream's position.

Reimplemented from ZStreamRPos.

uint64 ZStreamRWPos::GetSize (  )  const [inline]

Return the stream's size.

Reimplemented from ZStreamRPos.


The documentation for this class was generated from the following file:
Generated on Thu Jul 26 11:22:04 2007 for ZooLib by  doxygen 1.4.7