public byte[] GetXmb() { using var ms = new MemoryStream(); using (var bw = new BinaryWriter(ms)) { bw.Write(XmbFile.Deserialize(_xDocument).ToByteArray()); } return(ms.ToArray()); }
public static XmbDocument ParseXmb(BinaryReader reader) { var xmb = XmbFile.Deserialize(reader); return(ParseXmb(xmb)); }