public static void Test() { string s = "/wQtAQgAAAD7AAAAA2lvcwAAAAAAAAAAAl8wAAAAAAAAAAAA9wAAAAAAAAAAAMBpjJvU0AjVAAAAL1VzZXJzL0xhd3JlbmNlL0xpYnJhcnkvRGV2ZWxvcGVyL0NvcmVTaW11bGF0b3IvRGV2aWNlcy9GNDJFNzkyQy04NDQ3LTRCQ0QtQjVGOS1EMzA5MzNDNkM1NTQvZGF0YS9Db250YWluZXJzL0RhdGEvQXBwbGljYXRpb24vMEQ3MDZCNkEtMThDQS00Q0EwLUE4NEItN0M4NEJBRTdCOEJFL0RvY3VtZW50cy8xMDZFOTlBMS00RjZBLTQ1QTItQjMyMC1CMEFENEE4RTg0NzMuSlBHBQAAAGlvc18x8iMeAQAAAAA="; byte[] buffer = Convert.FromBase64String(s); Class41.smethod_1(buffer, 0); CompactPropertySerializer.Default.Deserialize <Application.FileTransfering.BeginSendFileContract>(buffer, Class41.int_1); }
public MessageHandler method_11() { if (!this.nullable_0.HasValue) { string str = Class84.smethod_0().imethod_8(this.byte_0, 0, this.int_4); if (str.Length == 1) { return(null); } this.nullable_0 = new bool?(str.ToLower().Contains("websocket")); if (this.nullable_0.Value) { Class9 class7 = new Class9(str); this.int_4 = 0; byte[] buffer = Class84.smethod_0().imethod_9(class7.method_2()); base.GetStream().Write(buffer, 0, buffer.Length); return(null); } } if (this.nullable_0.Value) { int num = 0; Class12 class4 = Class12.smethod_0(this.byte_0, this.int_4, out num); if (class4 == null) { return(null); } if (class4.Header.method_4() == 8) { this.bool_1 = true; return(null); } this.method_12(num); Class41 class3 = Class41.smethod_1(class4.method_1(), 0); class3.SetClientType((base.GetStream() is SslStream) ? ClientType.WebSocket_SSL : ClientType.WebSocket); return(new MessageHandler(class3, class4.method_1(), class3.imethod_4(), base.GetIPEndPoint())); } if (this.int_4 < this.int_3) { return(null); } Class41 class6 = Class41.smethod_1(this.byte_0, 0); if (class6.imethod_5() == 0) { this.method_12(class6.imethod_4()); return(new MessageHandler(class6, null, base.GetIPEndPoint())); } if (this.int_4 < (this.int_3 + class6.imethod_5())) { return(null); } byte[] dst = new byte[class6.imethod_5()]; Buffer.BlockCopy(this.byte_0, class6.imethod_4(), dst, 0, class6.imethod_5()); this.method_12(class6.imethod_4() + class6.imethod_5()); return(new MessageHandler(class6, dst, 0, base.GetIPEndPoint())); }
public Interface22 imethod_10(byte[] byte_0, int int_1) { return(Class41.smethod_1(byte_0, int_1)); }