init_with_fd
Description:
Initialise the scanner with an fd.
The scanner's offsets will be relative to the current file position of the file descriptor. As a result, seekable descritors should be seeked using the parser seek functions.
Parameters:
this | |
fd |
A valid file descriptor. |
Returns:
Returns -1 on error. |