public void Write(BinaryWriterEx output) { output.WriteAsciiz(FileName); output.Write(CompressedMagic); output.Write(UncompressedSize); output.Write(StartOffset); output.Write(TimeStamp); output.Write(DataSize); }
private static void WriteProperties(BinaryWriterEx output, IEnumerable <string> properties) { //create starting entry VersionEntry.Write(output); foreach (var e in properties) { output.WriteAsciiz(e); } output.Write((byte)0); //empty string }
public void Write(BinaryWriterEx output) { output.Write(VertexCount); for (int i = 0; i < 4; ++i) { if (i < Vertices.Length && Vertices[i] != null) { Vertices[i].Write(output); } else { output.Write(0); output.Write(0); output.Write(0); output.Write(0); } } output.Write((int)Flags); output.WriteAsciiz(Texture); output.WriteAsciiz(Material); }
protected void WriteHeader(BinaryWriterEx output) { output.Write(true); output.WriteAsciiz(Name); output.Write(DataSize); }