public MDXTexture(byte[] data) { using (MemoryStream ms = new MemoryStream(data)) { using (BinaryReader br = new BinaryReader(ms)) { this.TextureType = (ETextureType)br.ReadUInt32(); this.Flags = (ETextureFlags)br.ReadUInt32(); this.FilenameLength = br.ReadUInt32(); this.FilenameOffset = br.ReadUInt32(); } } }