コード例 #1
0
        public void Build(string path)
        {
            IO.EndianWriter file = new BlamLib.IO.EndianWriter(path, BlamLib.IO.EndianState.Little, this, true);

            MemoryStream ms = PrepareStrings();

            file.Write(Names.Count);
            //file.Write(ms.GetBuffer().Length);

            //foreach (int offset in NameOffsets)
            //    file.Write(offset);

            //foreach (int offset in ScenarioOffsets)
            //    file.Write(offset);

            file.Write(ms.GetBuffer());

            ms.Close();
            file.Close();
        }
コード例 #2
0
ファイル: DelimitorFile.cs プロジェクト: CodeAsm/open-sauce
		public void Build(string path)
		{
			IO.EndianWriter file = new BlamLib.IO.EndianWriter(path, BlamLib.IO.EndianState.Little, this, true);

			MemoryStream ms = PrepareStrings();

			file.Write(Names.Count);
			//file.Write(ms.GetBuffer().Length);

			//foreach (int offset in NameOffsets)
			//    file.Write(offset);

			//foreach (int offset in ScenarioOffsets)
			//    file.Write(offset);

			file.Write(ms.GetBuffer());

			ms.Close();
			file.Close();
		}
コード例 #3
0
 public void Close()
 {
     output.Close();
 }