Function clipboard_win::raw::size_unsafe

source ·
pub unsafe fn size_unsafe(format: u32) -> Option<NonZeroUsize>
Expand description

Retrieves size of clipboard data for specified format.

Pre-conditions:

Returns:

Size in bytes if format presents on clipboard.

Unsafety:

In some cases, clipboard content might be so invalid that it crashes on GlobalSize (e.g. Bitmap)

Due to that function is marked as unsafe