コード例 #1
0
 public static void GetStruct(
     this IVolumeInfo pVolumeInfo,
     out Fsp.Interop.VolumeInfo VolumeInfo
     )
 {
     VolumeInfo           = default;
     VolumeInfo.FreeSize  = (ulong)pVolumeInfo.FreeSize;
     VolumeInfo.TotalSize = (ulong)pVolumeInfo.TotalSize;
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: griderd/gsvm
        static bool OpenVolume(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("No path provided.");
                return(false);
            }
            else if (args.Length > 1)
            {
                Console.WriteLine("Too many arguments.");
                return(false);
            }

            byte[] volumeData = File.ReadAllBytes(args[0]);
            volume           = new VMFS1Volume(volumeData);
            currentDirectory = volume;
            return(true);
        }
コード例 #3
0
 public Result GetVolumeInfo(out IVolumeInfo pVolumeInfo) => throw new NotImplementedException();
コード例 #4
0
ファイル: Program.cs プロジェクト: griderd/gsvm
 static bool Unmount(string[] args)
 {
     volume = null;
     return(true);
 }