Example #1
0
        // Required for all IDumpers for them to work, but can't enforced by the interface because it's static:
        public static RangeValue CreateFromDump(SafeSharedObjects shared, Dump d)
        {
            var newObj = new RangeValue();

            newObj.LoadDump(d);
            return(newObj);
        }
Example #2
0
        // Required for all IDumpers for them to work, but can't enforced by the interface because it's static:
        public static PathValue CreateFromDump(SafeSharedObjects shared, Dump d)
        {
            var newObj = new PathValue();

            newObj.Shared = shared;
            newObj.LoadDump(d);
            return(newObj);
        }
Example #3
0
            public override void Execute(SafeSharedObjects shared)
            {
                int remaining = CountRemainingArgs(shared);

                GlobalPath path;

                if (remaining == 0)
                {
                    path = GlobalPath.FromVolumePath(shared.VolumeMgr.CurrentDirectory.Path,
                                                     shared.VolumeMgr.GetVolumeRawIdentifier(shared.VolumeMgr.CurrentVolume));
                }
                else
                {
                    object pathObject = PopValueAssert(shared, true);
                    path = shared.VolumeMgr.GlobalPathFromObject(pathObject);
                }

                AssertArgBottomAndConsume(shared);

                ReturnValue = new PathValue(path, shared);
            }
Example #4
0
 public PathValue(GlobalPath path, SafeSharedObjects sharedObjects)
     : this()
 {
     Path = path;
     this.sharedObjects = sharedObjects;
 }
 public PathValue(GlobalPath path, SafeSharedObjects sharedObjects) : this()
 {
     Path = path;
     this.sharedObjects = sharedObjects;
 }
Example #6
0
 public abstract void AddTo(SafeSharedObjects shared);