Beispiel #1
0
    private void method_20(Class1132 A_0, string A_1)
    {
        int num = 9;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䤮䈰", num));
        }
        this.class1132_0 = A_0;
        BinaryReader reader = new BinaryReader(this.class1132_0.method_0().method_5(BookmarkStart.b("砮帰䄲儴猶嘸堺䠼刾⑀ⵂㅄ", num)), Class813.smethod_0(true));

        this.class703_0 = new Class703(reader);
        if (this.class703_0.method_1())
        {
            throw new NotSupportedException(BookmarkStart.b("笮夰娲䘴᜶崸吺帼䨾ⱀ♂⭄㍆楈≊㹌潎㽐㱒⅔睖⩘⹚ⵜ⽞๠ᅢᅤɦ൨䕪", num));
        }
        if (this.class703_0.bool_4)
        {
            if (A_1 == null)
            {
                throw new PasswordErrorException(BookmarkStart.b("欮帰倲䀴娶尸唺䤼Ἶ⡀あ敄≆❈⡊㽌㙎⅐❒ご㍖畘筚ቜ⽞Ѡൢ䕤፦Ũ๪䵬Ὦၰrٴvᙸॺ᥼彾愈ꮊﶌレ뎜", num));
            }
            new Class987().method_1(this.class1132_0, this.class703_0, A_1);
        }
        Stream input = this.class1132_0.method_0().method_5(BookmarkStart.b("砮帰䄲儴猶嘸堺䠼刾⑀ⵂㅄ", num));

        this.binaryReader_0 = new BinaryReader(input, Class813.smethod_0(true));
        this.binaryReader_1 = new BinaryReader(input, Class813.smethod_0(false));
        this.class703_0.method_3(this.binaryReader_0);
        Stream stream2 = this.class1132_0.method_0().method_5(this.class703_0.method_0());

        this.binaryReader_2 = new BinaryReader(stream2, Encoding.Unicode);
        Stream stream3 = this.class1132_0.method_0().method_4(BookmarkStart.b("欮倰䜲吴", num));

        this.binaryReader_3 = (stream3 != null) ? new BinaryReader(stream3, Encoding.Unicode) : null;
        this.class770_0     = new Class770(this.method_5(), this.method_3());
        this.class160_0     = new Class160(this.method_5(), this.method_1(), this.method_3());
        this.method_26();
        this.method_27();
        this.class598_0  = new Class598(this.method_5(), this.method_3());
        this.class165_0  = new Class165(this.method_5(), this.method_3(), this.class160_0.method_4());
        this.class348_0  = new Class348(SubDocumentType.Main, this.method_5(), this.method_3());
        this.class348_1  = new Class348(SubDocumentType.Header, this.method_5(), this.method_3());
        this.class996_0  = new Class996(this.method_5(), this.method_3());
        this.class700_0  = new Class700(FootnoteType.Footnote, this.method_5(), this.method_3());
        this.class700_1  = new Class700(FootnoteType.Endnote, this.method_5(), this.method_3());
        this.class1065_0 = new Class1065(this.method_5(), this.method_3());
        this.class168_0  = new Class168(this.method_5(), this.method_3());
        this.class349_0  = new Class349(this.method_5(), this.method_3());
        this.class986_0  = new Class986(this.method_5(), this.method_3());
        this.method_21();
    }
Beispiel #2
0
 internal static void smethod_1(BinaryWriter A_0, string A_1)
 {
     if (Class567.smethod_16(A_1))
     {
         A_0.Write((ushort)A_1.Length);
         byte[] bytes = Class813.smethod_0(true).GetBytes(A_1);
         A_0.Write(bytes);
     }
     else
     {
         A_0.Write((ushort)0);
     }
 }
Beispiel #3
0
    internal static string smethod_0(BinaryReader A_0)
    {
        int  num  = A_0.ReadUInt16();
        int  num2 = num & 0x7fff;
        bool flag = (num & 0x8000) == 0;

        if (num2 > 0)
        {
            int    count = flag ? (num2 * 2) : num2;
            byte[] bytes = A_0.ReadBytes(count);
            return(Class813.smethod_0(flag).GetString(bytes));
        }
        return("");
    }
Beispiel #4
0
 internal char method_22(long A_0)
 {
     if ((A_0 <= this.class160_0.binaryReader_0.BaseStream.Length) && (A_0 >= 0L))
     {
         long position = this.class160_0.binaryReader_0.BaseStream.Position;
         this.class160_0.binaryReader_0.BaseStream.Position = A_0;
         byte[] buffer = new byte[2];
         this.class160_0.binaryReader_0.BaseStream.Read(buffer, 0, 2);
         string str = string.Empty;
         str = Class813.smethod_0(true).GetString(buffer);
         char ch = (str.Length == 1) ? str[0] : '\0';
         this.class160_0.binaryReader_0.BaseStream.Position = position;
         return(ch);
     }
     return('\0');
 }
Beispiel #5
0
    internal long method_25(uint A_0)
    {
        bool flag = false;
        uint num  = 0;
        uint num2 = (Class813.smethod_0(true) == Encoding.Unicode) ? 2 : 1;
        uint num3 = (uint)((this.class770_0.method_4(0).method_0().method_4() * num2) + this.class770_0.method_4(0).int_0);
        uint num4 = (uint)this.class770_0.method_4(0).int_0;

        if ((A_0 >= num4) && (A_0 <= num3))
        {
            if (A_0 == num3)
            {
                flag = true;
                num4 = num3;
            }
            uint num5 = A_0 - (flag ? ((uint)this.class770_0.method_4(0).method_0().method_4()) : ((uint)this.class770_0.method_4(0).method_0().method_2()));
            num = (num5 * num2) + num4;
        }
        return((long)num);
    }
Beispiel #6
0
    internal uint method_24(uint A_0)
    {
        bool flag = false;
        uint num  = 0;
        uint num3 = (Class813.smethod_0(true) == Encoding.Unicode) ? 2 : 1;
        uint num5 = (uint)((this.class770_0.method_4(0).method_0().method_4() * num3) + this.class770_0.method_4(0).int_0);
        uint num2 = (uint)this.class770_0.method_4(0).int_0;

        if ((A_0 < num2) || (A_0 > num5))
        {
            return(num);
        }
        if (A_0 == num5)
        {
            flag = true;
            num2 = num5;
        }
        uint num4 = (A_0 - num2) / num3;

        return(flag ? ((uint)this.class770_0.method_4(0).method_0().method_4()) : (((uint)this.class770_0.method_4(0).method_0().method_2()) + num4));
    }