示例#1
0
 public void Close()
 {
     s3pi.Package.Package.ClosePackage(0, _package);
     _package  = null;
     _filename = null;
     _nmap     = null;
 }
示例#2
0
 public void Close()
 {
     s3pi.Package.Package.ClosePackage(0, _package);
     _package = null;
     _filename = null;
     _nmap = null;
 }
示例#3
0
        public static NameMap Load(Package _package)
        {
            NameMap nm = new NameMap();

            nm.resource = _package.FindResource(MatchNMAPResourceType);
            nm._package = _package;

            return(nm.resource.IResource == null ? null : nm);
        }
示例#4
0
        public static NameMap New(Package _package, ulong?iid = null)
        {
            NameMap nm = new NameMap();

            nm.resource = _package.NewResource(NMAPResourceType, 0, iid.HasValue ? iid.Value : Package.NewInstance());
            nm._package = _package;

            return(nm);
        }
示例#5
0
        public static NameMap Load(Package _package)
        {
            NameMap nm = new NameMap();

            nm.resource = _package.FindResource(MatchNMAPResourceType);
            nm._package = _package;

            return nm.resource.IResource == null ? null : nm;
        }
示例#6
0
        public static NameMap New(Package _package, ulong? iid = null)
        {
            NameMap nm = new NameMap();

            nm.resource = _package.NewResource(NMAPResourceType, 0, iid.HasValue ? iid.Value : Package.NewInstance());
            nm._package = _package;

            return nm;
        }
示例#7
0
        public void ResourceName(ulong iid, string name)
        {
            if (nmap == null && _package != null)
            {
                _nmap = NameMap.New(this, NewInstance());
            }

            if (nmap != null)
            {
                nmap.Add(iid, name);
            }
        }
示例#8
0
        public void ResourceName(ulong iid, string name)
        {
            if (nmap == null && _package != null)
                _nmap = NameMap.New(this, NewInstance());

            if (nmap != null)
                nmap.Add(iid, name);
        }