init_with_fd


Description:

public int init_with_fd (int fd)

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

a MimeParser

fd

A valid file descriptor.

Returns:

Returns -1 on error.




2022 vala-language.org