protected override void _Write(BinaryWriter writer) { Offset = (uint)writer.BaseStream.Position; writer.Write(Identifier); writer.Write(EntrySize); TextureID.Write(writer); if (WriteTextureBuffer) { Texture.WriteBuffer(writer); } else { Texture.Write(writer); } writer.Write((UInt64)0); //Padding EntrySize = (uint)(writer.BaseStream.Position - Offset); writer.BaseStream.Seek(Offset + 4, SeekOrigin.Begin); writer.Write(EntrySize); writer.BaseStream.Seek(Offset + EntrySize, SeekOrigin.Begin); }
public void WriteTextureID(BinaryWriter writer) { TextureID.Write(writer); }
public void WriteHeader(BinaryWriter writer) { writer.Write(Identifier); writer.Write(EntrySize); TextureID.Write(writer); }