Example #1
0
        public byte[] GetXmb()
        {
            using var ms = new MemoryStream();
            using (var bw = new BinaryWriter(ms))
            {
                bw.Write(XmbFile.Deserialize(_xDocument).ToByteArray());
            }

            return(ms.ToArray());
        }
Example #2
0
        public static XmbDocument ParseXmb(BinaryReader reader)
        {
            var xmb = XmbFile.Deserialize(reader);

            return(ParseXmb(xmb));
        }