示例#1
0
        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);
        }
示例#2
0
 public static byte[] GetClipboardData(int maxSize)
 {
     return(MacUtils.GetPasteboardData());
 }