bool INatShare.Share(byte[] pngData) { var handle = GCHandle.Alloc(pngData, GCHandleType.Pinned); var result = NatShareBridge.Share(handle.AddrOfPinnedObject(), pngData.Length); handle.Free(); return(result); }
bool INatShare.Share(string path) { return(NatShareBridge.Share(path)); }