public static IBuffer FileReadBuffer(string path) { path = StorageUtility.ConvertPathSeparators(path); Task <IBuffer> task = StorageUtility.AsyncFileReadBuffer(path); task.Wait(); return(task.Result); }
public unsafe static long $Invoke4(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncFileReadBuffer(Marshal.PtrToStringUni(*(IntPtr *)args)))); }