oh dear
This commit is contained in:
@@ -0,0 +1,165 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SignalRCore.Encoders
|
||||
{
|
||||
// Token: 0x020018ED RID: 6381
|
||||
[Token(Token = "0x20018ED")]
|
||||
public sealed class LitJsonEncoder : IEncoder
|
||||
{
|
||||
// Token: 0x170017E7 RID: 6119
|
||||
// (get) Token: 0x0600961B RID: 38427 RVA: 0x001EDC98 File Offset: 0x001EBE98
|
||||
[Token(Token = "0x170017E7")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x600961B")]
|
||||
[Address(RVA = "0x1C38EA0", Offset = "0x1C37CA0", VA = "0x181C38EA0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return "json";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600961C RID: 38428 RVA: 0x001EDCAC File Offset: 0x001EBEAC
|
||||
[Token(Token = "0x600961C")]
|
||||
[Address(RVA = "0x1C389D0", Offset = "0x1C377D0", VA = "0x181C389D0")]
|
||||
public LitJsonEncoder()
|
||||
{
|
||||
KJBJHOONAKL<int, long> <>9__2_ = LitJsonEncoder.<>c.<>9__2_0;
|
||||
if (<>9__2_ == 0)
|
||||
{
|
||||
LitJsonEncoder.<>c.<>9__2_0 = delegate(int input)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
};
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<int, long>(<>9__2_);
|
||||
KJBJHOONAKL<long, int> kjbjhoonakl;
|
||||
if (LitJsonEncoder.<>c.<>9__2_1 == 0)
|
||||
{
|
||||
kjbjhoonakl = delegate(long input)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
};
|
||||
LitJsonEncoder.<>c.<>9__2_1 = kjbjhoonakl;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<long, int>(kjbjhoonakl);
|
||||
KJBJHOONAKL<double, int> kjbjhoonakl2;
|
||||
if (LitJsonEncoder.<>c.<>9__2_2 == 0)
|
||||
{
|
||||
kjbjhoonakl2 = delegate(double input)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
};
|
||||
LitJsonEncoder.<>c.<>9__2_2 = kjbjhoonakl2;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<double, int>(kjbjhoonakl2);
|
||||
KJBJHOONAKL<string, DateTime> kjbjhoonakl3;
|
||||
if (LitJsonEncoder.<>c.<>9__2_3 == 0)
|
||||
{
|
||||
kjbjhoonakl3 = delegate(string input)
|
||||
{
|
||||
DateTime dateTime = Convert.ToDateTime(input);
|
||||
DateTime dateTime2;
|
||||
return dateTime2;
|
||||
};
|
||||
LitJsonEncoder.<>c.<>9__2_3 = kjbjhoonakl3;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<string, DateTime>(kjbjhoonakl3);
|
||||
KJBJHOONAKL<double, float> kjbjhoonakl4;
|
||||
if (LitJsonEncoder.<>c.<>9__2_4 == 0)
|
||||
{
|
||||
kjbjhoonakl4 = delegate(double input)
|
||||
{
|
||||
};
|
||||
LitJsonEncoder.<>c.<>9__2_4 = kjbjhoonakl4;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<double, float>(kjbjhoonakl4);
|
||||
KJBJHOONAKL<string, byte[]> kjbjhoonakl5;
|
||||
if (LitJsonEncoder.<>c.<>9__2_5 == 0)
|
||||
{
|
||||
kjbjhoonakl5 = (string input) => Convert.FromBase64String(input);
|
||||
LitJsonEncoder.<>c.<>9__2_5 = kjbjhoonakl5;
|
||||
}
|
||||
NOEIKACMNJH.EDOFHMLFIHF<string, byte[]>(kjbjhoonakl5);
|
||||
}
|
||||
|
||||
// Token: 0x0600961D RID: 38429 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600961D")]
|
||||
[Address(RVA = "0x1B909A0", Offset = "0x1B8F7A0", VA = "0x181B909A0", Slot = "6")]
|
||||
public T DecodeAs<T>(string text)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600961E RID: 38430 RVA: 0x001EDDA4 File Offset: 0x001EBFA4
|
||||
[Token(Token = "0x600961E")]
|
||||
[Address(RVA = "0x1B90A40", Offset = "0x1B8F840", VA = "0x181B90A40", Slot = "8")]
|
||||
public T DecodeAs<T>(byte[] data)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600961E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling T BestHTTP.SignalRCore.Encoders.LitJsonEncoder::DecodeAs<T>(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600961F RID: 38431 RVA: 0x001EDDB8 File Offset: 0x001EBFB8
|
||||
[Token(Token = "0x600961F")]
|
||||
[Address(RVA = "0x190C400", Offset = "0x190B200", VA = "0x18190C400", Slot = "7")]
|
||||
public byte[] EncodeAsBinary<T>(T value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600961F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SignalRCore.Encoders.LitJsonEncoder::EncodeAsBinary<T>(T)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009620 RID: 38432 RVA: 0x001EDDCC File Offset: 0x001EBFCC
|
||||
[Token(Token = "0x6009620")]
|
||||
[Address(RVA = "0x1B56550", Offset = "0x1B55350", VA = "0x181B56550", Slot = "5")]
|
||||
public string EncodeAsText<T>(T value)
|
||||
{
|
||||
string text;
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x06009621 RID: 38433 RVA: 0x001EDDDC File Offset: 0x001EBFDC
|
||||
[Token(Token = "0x6009621")]
|
||||
[Address(RVA = "0x1C38960", Offset = "0x1C37760", VA = "0x181C38960", Slot = "9")]
|
||||
public object ConvertTo(Type toType, object obj)
|
||||
{
|
||||
string text = NOEIKACMNJH.MFFBDFHINID(obj);
|
||||
return NOEIKACMNJH.IGOEEFAAPKD(toType, text);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user