peek_real_data


Description:

public void* peek_real_data (out size_t ret_size) throws Error

Queries a pointer directly to the clipboard data of a ClipData.

The resulting pointer is not necessarily the same data pointer that was passed to Blob prior to creating the this. For example, if the data is in WINDOWS_CLIPBOARD format, then it will have extra header bytes in front of the actual metafile data. This function will skip over those header bytes if necessary and return a pointer to the "real" data.

Parameters:

this

A ClipData.

ret_size

Location to return the size of the returned data buffer.

Returns:

Pointer to the real clipboard data. The size in bytes of this buffer is returned in the ret_size argument.