Пример #1
0
        bool INatShare.Share(byte[] pngData)
        {
            var handle = GCHandle.Alloc(pngData, GCHandleType.Pinned);
            var result = NatShareBridge.Share(handle.AddrOfPinnedObject(), pngData.Length);

            handle.Free();
            return(result);
        }
Пример #2
0
 bool INatShare.Share(string path)
 {
     return(NatShareBridge.Share(path));
 }