AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ALimitedInputStream Class Reference

Input stream that will pass through a maximum of a certain number of bytes - then it will return eof (end of stream)

#include <AUI/IO/ALimitedInputStream.h>

Member Function Documentation

> All members, including inherited

◆ read()

size_t ALimitedInputStream::read ( char * dst,
size_t size )
overridevirtual
Sneaky exceptions
An implementation can throw any exception that subclasses AIOException.
Parameters
dstdestination buffer
sizedestination buffer's size. > 0
Returns
number of read bytes (including 0)

Implements IInputStream.