public static IObservable <byte[]> EncryptCRC32Async(byte[] src) { byte[] dst = null; return(Observable.Start(() => Utility.EncryptCRC32(src, out dst)) .ObserveOnMainThread() .Select(_ => dst)); }
public static IObservable <string> EncryptCRC32Async(string src) { string dst = null; return(Observable.Start(() => Utility.EncryptCRC32(src, out dst)) .ObserveOnMainThread() .Select(_ => dst)); }