Esempio n. 1
0
    public static IBuffer FileReadBuffer(string path)
    {
        path = StorageUtility.ConvertPathSeparators(path);
        Task <IBuffer> task = StorageUtility.AsyncFileReadBuffer(path);

        task.Wait();
        return(task.Result);
    }
Esempio n. 2
0
 public unsafe static long $Invoke4(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StorageUtility.AsyncFileReadBuffer(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }