Beispiel #1
0
    protected override void vmethod_1(BinaryWriter A_0)
    {
        byte[] buffer = Class409.smethod_30(this.byte_1);
        base.method_9(A_0);
        A_0.Write(buffer.Length);
        Class1044 class2 = Class409.smethod_9(this.byte_1);

        A_0.Write(class2.method_0());
        A_0.Write(class2.method_1());
        A_0.Write(class2.method_2());
        A_0.Write(class2.method_3());
        A_0.Write(class2.method_11());
        A_0.Write(class2.method_12());
        if (buffer.Length > 0x4000)
        {
            MemoryStream stream  = new MemoryStream(buffer);
            MemoryStream stream2 = new MemoryStream();
            Class1156.smethod_4(stream, stream2, CompressionMethod.Stored);
            A_0.Write((int)stream2.Length);
            A_0.Write((byte)0);
            A_0.Write((byte)0xfe);
            A_0.Write(stream2.GetBuffer(), 0, (int)stream2.Length);
            stream2.Close();
            stream.Close();
        }
        else
        {
            A_0.Write(buffer.Length);
            A_0.Write((byte)0xfe);
            A_0.Write((byte)0xfe);
            A_0.Write(buffer);
        }
    }
Beispiel #2
0
    internal static byte[] smethod_27(byte[] A_0)
    {
        MemoryStream output = new MemoryStream();
        BinaryWriter writer = new BinaryWriter(output);
        string       str    = BookmarkStart.b("破搶瘸紺笼瘾ɀق籄楆祈", 15);

        for (int i = 0; i < str.Length; i++)
        {
            writer.Write((byte)str[i]);
        }
        writer.Write((uint)A_0.Length);
        Class1044 class2 = Class409.smethod_27(A_0);

        writer.Write(class2.method_0());
        writer.Write(class2.method_1());
        writer.Write(class2.method_2());
        writer.Write(class2.method_3());
        writer.Write(class2.method_11());
        writer.Write(class2.method_12());
        writer.Write((uint)0);
        writer.Write((ushort)0xfe00);
        for (int j = 0; j < 0x1d3; j++)
        {
            writer.Write((byte)0);
        }
        writer.Write(A_0);
        return(smethod_29(output.ToArray()));
    }