Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Advanced Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWByteFromStreambufInputStreamImp

Module:  Advanced Tools   Package:  Streams


RWByteFromStreambufInputStreamImp RWByteInputStreamImp RWInputStreamImp RWStreamImp RWBodyBase

Local Index

Members

Header File

#include <rw/stream/RWByteFromStreambufInputStreamImp.h>

Description

Concrete class connecting a binary stream to an iostreams narrow character buffer. The iostreams buffer is used as the source for the data read from the binary stream. The iostreams buffer must be opened in binary mode. Implements the body idiom from the handle-body pattern.

Protected Constructor

RWByteFromStreambufInputStreamImp(streambuf& sourceBuff);

Public Destructor

virtual 
~RWByteFromStreambufInputStreamImp();

Static Public Member Function

static RWByteInputStream 
make(streambuf& source);

Public Member Functions

virtual RWSize 
available() const;
virtual void 
close();
virtual bool 
isBad() const;
virtual bool 
isEof() const;
virtual bool 
isFail() const;
virtual bool 
isGood() const;
virtual RWByte 
read();
virtual RWSize 
read(RWByte* byteArray, RWSize numBytes);
virtual RWSize 
readUntil(RWByte* byteArray, RWSize maxSize, RWByte delim);
virtual RWSize 
skip(RWSize numUnits);

Protected Member Functions

streambuf& 
getSourceBuff();

const streambuf& 
getSourceBuff() const;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.