static string MxDBuildSaveStringShared(ref MidsCharacterFileFormat.CompressionData cData, bool inncludeAltEnh, bool @break)
    {
        byte[] numArray = new byte[0];
        string str;

        if (!MidsCharacterFileFormat.MxDBuildSaveBuffer(ref numArray, inncludeAltEnh))
        {
            str = string.Empty;
        }
        else
        {
            ASCIIEncoding asciiEncoding = new ASCIIEncoding();
            cData.SzUncompressed = numArray.Length;
            byte[] bytes = Zlib.CompressChunk(ref numArray);
            cData.SzCompressed = bytes.Length;
            bytes           = Zlib.HexEncodeBytes(bytes);
            cData.SzEncoded = bytes.Length;
            str             = (@break ? Zlib.BreakString(asciiEncoding.GetString(bytes), 67, true) : asciiEncoding.GetString(bytes));
        }
        return(str);
    }
    static string MxDBuildSaveStringShared(
        ref CompressionData cData,
        bool includeAltEnh,
        bool @break)
    {
        byte[] numArray = Array.Empty <byte>();
        string str;

        if (!MxDBuildSaveBuffer(ref numArray, includeAltEnh))
        {
            str = string.Empty;
        }
        else
        {
            var asciiEncoding = new ASCIIEncoding();
            cData.SzUncompressed = numArray.Length;
            byte[] iBytes = Zlib.CompressChunk(ref numArray);
            cData.SzCompressed = iBytes.Length;
            byte[] bytes = Zlib.HexEncodeBytes(iBytes);
            cData.SzEncoded = bytes.Length;
            str             = @break ? Zlib.BreakString(asciiEncoding.GetString(bytes), 67, true) : asciiEncoding.GetString(bytes);
        }
        return(str);
    }