public static void GetStruct( this IVolumeInfo pVolumeInfo, out Fsp.Interop.VolumeInfo VolumeInfo ) { VolumeInfo = default; VolumeInfo.FreeSize = (ulong)pVolumeInfo.FreeSize; VolumeInfo.TotalSize = (ulong)pVolumeInfo.TotalSize; }
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); }
public Result GetVolumeInfo(out IVolumeInfo pVolumeInfo) => throw new NotImplementedException();
static bool Unmount(string[] args) { volume = null; return(true); }