Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
NullInStream Class Reference
+ Inheritance diagram for NullInStream:

Public Member Functions

virtual int read (void *buffer, int size)
 
- Public Member Functions inherited from InStream
virtual ~InStream (void)
 
virtual int read (void)
 
virtual CString lastErrorMessage (void)
 

Additional Inherited Members

- Static Public Attributes inherited from InStream
static const int FAILED = -1
 
static const int ENDED = -2
 
static InStreamnull = _null
 

Member Function Documentation

◆ read()

virtual int read ( void buffer,
int  size 
)
inlinevirtual

Read some bytes from the stream and store them in the given buffer. This method does not ever read as many bytes as available in the buffer even if the stream is not ended. Insteadn a read returning 0 bytes means the end of stream is reached.

Parameters
bufferBuffer to write bytes in.
sizeSize of the buffer.
Returns
Number of read bytes, 0 for end of stream, -1 for an error.

Implements InStream.


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