コード例 #1
0
    public static IBuffer FileReadBuffer(string path)
    {
        path = StorageUtility.ConvertPathSeparators(path);
        Task <IBuffer> task = StorageUtility.AsyncFileReadBuffer(path);

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