read


Description:

public ssize_t read (out uint8[] databuffer, ssize_t len) throws Error

Read at most len bytes from the internal mime parser buffer.

Returns the address of the internal buffer in databuffer, and the length of useful data.

len may be specified as g_maxssize, in which case you will get the full remainder of the buffer at each call.

Note that no parsing of the data read through this function occurs, so no state changes occur, but the seek position is updated appropriately.

Parameters:

this

MIME parser object

databuffer

The data buffer

len

The length of data to read

Returns:

The number of bytes available, or -1 on error.