当前位置: 首页>>代码示例>>C#>>正文


C# Entry.Load方法代码示例

本文整理汇总了C#中Entry.Load方法的典型用法代码示例。如果您正苦于以下问题:C# Entry.Load方法的具体用法?C# Entry.Load怎么用?C# Entry.Load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Entry的用法示例。


在下文中一共展示了Entry.Load方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Load

                public void Load(byte[] data, int srcOffset)
                {
                    EntryOffset = FSHelpers.Read32(data, srcOffset);

                    Entry = new Entry();
                    Entry.Load(data, EntryOffset);
                }
开发者ID:CryZe,项目名称:WindEditor,代码行数:7,代码来源:WindWakerEntityData.cs

示例2: loadFromStream

 private void loadFromStream(Stream input)
 {
     this.count1 = StreamHelpers.ReadValueU32(input);
     for (int i = 0; i < count1; i++)
     {
         Entry e = new Entry(this.typeId);
         e.Load(input);
         this.entries.Add(e);
     }
 }
开发者ID:ellacharmed,项目名称:madscientistproductions,代码行数:10,代码来源:CatalogResource.cs

示例3: Load

		public void Load (System.IO.Stream stream)
		{
			while (stream.Position < stream.Length)
			{
				Entry current = new Entry ();
				current.Load (stream);
				//System.Console.WriteLine ("read {0} - {1}", ((EntryType)current.Type).ToString (), current.Name);
				try {
					//System.Console.WriteLine (System.Text.Encoding.ASCII.GetString (current.Data));
				} catch (System.Exception e) {
					Beagle.Util.Log.Error (e, "Error loading BIM file");
				}
				entries.Add (current);
			}
		}
开发者ID:ArsenShnurkov,项目名称:beagle-1,代码行数:15,代码来源:Bim.cs

示例4: Load

        public void Load( FileInfo _FileName )
        {
            XmlDocument	Doc = new XmlDocument();
            Doc.Load( _FileName.FullName );

            XmlElement	Root = Doc["TexturesDatabase"];
            if ( Root == null )
                throw new Exception( "Failed to retrieve the root \"TextureDatabase\" element! Not a valid database file?" );

            string	Location = Root.GetAttribute( "Location" );
            if ( Location == "" )
                throw new Exception( "Failed to retrieve the location path for the database!" );

            int	EntriesCount = 0;
            if ( !int.TryParse( Root.GetAttribute( "EntriesCount" ), out EntriesCount ) )
                throw new Exception( "Failed to parse amount of entries in the database!" );

            m_Errors = "";

            foreach ( Entry E in m_Entries )
                E.Dispose();
            m_Entries.Clear();
            for ( int EntryIndex=0; EntryIndex < EntriesCount; EntryIndex++ )
            {
                try
                {
                    XmlElement	EntryElement = Root.ChildNodes[EntryIndex] as XmlElement;
                    Entry	E = new Entry( this );
                    E.Load( this, EntryElement );
                    m_Entries.Add( E );
                }
                catch ( Exception _e )
                {
                    m_Errors += "An error occurred while loading database entry #" + EntryIndex + ": " + _e.Message;
                }
            }

            // Reconnect manifests found from the specified location
            RootPath = new DirectoryInfo( Location );
        }
开发者ID:Patapom,项目名称:GodComplex,代码行数:40,代码来源:Databases.cs


注:本文中的Entry.Load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。