Ejemplo n.º 1
0
        // Token: 0x06000189 RID: 393 RVA: 0x000062B0 File Offset: 0x000044B0
        public void writeToFile(string file, bool allowOverwriting = false)
        {
            FileMode mode = allowOverwriting ? FileMode.Create : FileMode.CreateNew;

            BisDll.Stream.BinaryWriter binaryWriter = new BisDll.Stream.BinaryWriter(new FileStream(file, mode));
            this.write(binaryWriter);
            binaryWriter.Close();
        }
Ejemplo n.º 2
0
        // Token: 0x0600018A RID: 394 RVA: 0x000062E0 File Offset: 0x000044E0
        public MemoryStream writeToMemory()
        {
            MemoryStream memoryStream = new MemoryStream(100000);

            BisDll.Stream.BinaryWriter binaryWriter = new BisDll.Stream.BinaryWriter(memoryStream);
            this.write(binaryWriter);
            binaryWriter.Position = 0L;
            return(memoryStream);
        }
Ejemplo n.º 3
0
 // Token: 0x06000188 RID: 392 RVA: 0x0000625C File Offset: 0x0000445C
 private void write(BisDll.Stream.BinaryWriter output)
 {
     output.writeAscii("MLOD", 4u);
     output.Write(257);
     output.Write(this.lods.Length);
     for (int i = 0; i < this.lods.Length; i++)
     {
         this.lods[i].write(output);
     }
 }
Ejemplo n.º 4
0
 // Token: 0x0600018B RID: 395 RVA: 0x00006310 File Offset: 0x00004510
 public void writeToStream(Stream stream)
 {
     BisDll.Stream.BinaryWriter output = new BisDll.Stream.BinaryWriter(stream);
     this.write(output);
 }