MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetRawData

Method SetRawData

Source/Engine/Platform/Windows/WindowsClipboard.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void WindowsClipboard::SetRawData(const Span<byte>& data)
41{
42 HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, data.Length());
43 Platform::MemoryCopy(GlobalLock(hMem), data.Get(), data.Length());
44 GlobalUnlock(hMem);
45
46 OpenClipboard(nullptr);
47 EmptyClipboard();
48 SetClipboardData(CF_PENDATA, hMem);
49 CloseClipboard();
50}
51
52void WindowsClipboard::SetFiles(const Array<String>& files)
53{

Callers

nothing calls this directly

Calls 2

LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected