peek


Description:

[ CCode ( array_length_pos = 1.1 , array_length_type = "guint" ) ]
public unowned uint8[]? peek (int64 offset)

Returns the return.length bytes of the stream to identify beginning at offset.

If offset is a positive number, the offset is relative to the beginning of the stream, if offset is a negative number the offset is relative to the end of the stream. The returned memory is valid until the typefinding function returns and must not be freed.

Parameters:

this

The TypeFind object the function was called with

offset

The offset

size

The number of bytes to return

Returns:

the requested data, or null if that data is not available.




2022 vala-language.org