TypeFind.peek

const(ubyte) * peek(long 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

offsetThe offset
sizeThe number of bytes to return

Returns

the

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