peek


Description:

public unowned uint8? peek (int64 offset, uint size)

Returns the size 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.