private static byte[] GetClipboardDataInternal(uint magic, int maxSize = int.MaxValue) { byte[] buffer = null; #if FAMISTUDIO_WINDOWS buffer = WinUtils.GetClipboardData(maxSize); #elif FAMISTUDIO_MACOS buffer = MacUtils.GetPasteboardData(); #else buffer = linuxClipboardData; #endif if (buffer == null || BitConverter.ToUInt32(buffer, 0) != magic) { return(null); } return(buffer); }
public static byte[] GetClipboardData(int maxSize) { return(MacUtils.GetPasteboardData()); }