init_with_stream
Description:
Initialise the scanner with a source stream.
The scanner's offsets will be relative to the current file position of the stream. As a result, seekable streams should only be seeked using the parser seek function.
Parameters:
this | |
stream |
a Stream to init with |
Returns:
-1 on error. |