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.
this | |
fd |
A valid file descriptor. |
Returns -1 on error. |