![]()  | 
  
    Qore Programming Language
    0.9.4.6
    
   | 
 
Private data for the Qore::StreamReader class. More...
#include <StreamReader.h>


Public Member Methods | |
| int64 | peekCheck (ExceptionSink *xsink) | 
| Peeks the next byte from the input stream.  More... | |
| virtual DLLLOCAL qore_offset_t | read (ExceptionSink *xsink, void *dest, qore_size_t limit, bool require_all=true) | 
| Read data until a limit.  More... | |
| DLLLOCAL BinaryNode * | readBinary (int64 limit, ExceptionSink *xsink) | 
| Read binary data from the stream.  More... | |
| DLLLOCAL QoreStringNode * | readLine (const QoreStringNode *eol, bool trim, ExceptionSink *xsink) | 
| Read one line.  More... | |
| DLLLOCAL QoreStringNode * | readString (int64 size, ExceptionSink *xsink) | 
| Read string data from the stream.  More... | |
  Public Member Methods inherited from AbstractPrivateData | |
| virtual DLLLOCAL void | deref (ExceptionSink *xsink) | 
| decrements the reference count of the object  More... | |
| virtual DLLLOCAL void | deref () | 
| decrements the reference count of the object without the possibility of throwing a Qore-language exception  | |
| DLLLOCAL void | ref () | 
| increments the reference count of the object  More... | |
  Public Member Methods inherited from QoreReferenceCounter | |
| DLLEXPORT | QoreReferenceCounter () | 
| creates the reference counter object  | |
| DLLEXPORT | QoreReferenceCounter (const QoreReferenceCounter &old) | 
| creates a new object with a reference count of 1  More... | |
| DLLEXPORT | ~QoreReferenceCounter () | 
| destroys the reference counter object  | |
| DLLEXPORT bool | is_unique () const | 
| returns true if the reference count is 1  More... | |
| DLLEXPORT int | reference_count () const | 
| gets the reference count  More... | |
| DLLEXPORT bool | ROdereference () const | 
| atomically decrements the reference count  More... | |
| DLLEXPORT void | ROreference () const | 
| atomically increments the reference count  | |
Private Attributes | |
| const QoreEncoding * | enc | 
| Encoding of the source input stream.  | |
| ReferenceHolder< InputStream > | in | 
| Source input stream.  | |
Additional Inherited Members | |
  Private Member Methods inherited from AbstractPrivateData | |
| virtual DLLLOCAL | ~AbstractPrivateData () | 
| as these objects are reference counted, the destructor should be called only when the reference count = 0 and not manually  | |
Private data for the Qore::StreamReader class.
      
  | 
  inline | 
Peeks the next byte from the input stream.
| xsink | the exception sink | 
References ExceptionSink::raiseException().
      
  | 
  inlinevirtual | 
Read data until a limit.
| xsink | exception sink | 
| dest | destination buffer | 
| limit | maximum amount of data to read | 
| require_all | if true then throw an exception if the required amount of data cannot be read from the stream | 
      
  | 
  inline | 
Read binary data from the stream.
| limit | max amount of data to read; if equal to -1, all data will be read, if equal to 0, no data will be read | 
| xsink | exception sink | 
      
  | 
  inline | 
Read one line.
| eol | end-of-line symbol, if missing and the character encoding is ASCII-compatible, then "\n", "\r", or "\r\n" are supported), otherwise if missing, and the character encoding is not ASCII-compatible, then "\n" is assumed  | 
| trim | whether to trim the EOL symbols | 
| xsink | exception sink | 
      
  | 
  inline | 
Read string data from the stream.
| size | max amount of data to read as a number of characters; if equal to -1, all data will be read, if equal to 0, no data will be read | 
| xsink | exception sink |