Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

166 lines
8.8 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SignalRCore.Encoders
{
// Token: 0x020019CD RID: 6605
[Token(Token = "0x20019CD")]
public sealed class LitJsonEncoder : IEncoder
{
// Token: 0x17001884 RID: 6276
// (get) Token: 0x060099E9 RID: 39401 RVA: 0x001F6D30 File Offset: 0x001F4F30
[Token(Token = "0x17001884")]
public string Name
{
[Token(Token = "0x60099E9")]
[Address(RVA = "0x62BE20", Offset = "0x62AE20", VA = "0x18062BE20", Slot = "4")]
get
{
return "json";
}
}
// Token: 0x060099EA RID: 39402 RVA: 0x001F6D44 File Offset: 0x001F4F44
[Token(Token = "0x60099EA")]
[Address(RVA = "0x62B950", Offset = "0x62A950", VA = "0x18062B950")]
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: 0x060099EB RID: 39403 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x60099EB")]
[Address(RVA = "0x22BC110", Offset = "0x22BB110", VA = "0x1822BC110", Slot = "6")]
public T DecodeAs<T>(string text)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060099EC RID: 39404 RVA: 0x001F6E3C File Offset: 0x001F503C
[Token(Token = "0x60099EC")]
[Address(RVA = "0x22BC1B0", Offset = "0x22BB1B0", VA = "0x1822BC1B0", Slot = "8")]
public T DecodeAs<T>(byte[] data)
{
/*
An exception occurred when decompiling this method (060099EC)
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: 0x060099ED RID: 39405 RVA: 0x001F6E50 File Offset: 0x001F5050
[Token(Token = "0x60099ED")]
[Address(RVA = "0x246D1F0", Offset = "0x246C1F0", VA = "0x18246D1F0", Slot = "7")]
public byte[] EncodeAsBinary<T>(T value)
{
/*
An exception occurred when decompiling this method (060099ED)
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: 0x060099EE RID: 39406 RVA: 0x001F6E64 File Offset: 0x001F5064
[Token(Token = "0x60099EE")]
[Address(RVA = "0x25F8660", Offset = "0x25F7660", VA = "0x1825F8660", Slot = "5")]
public string EncodeAsText<T>(T value)
{
string text;
return text;
}
// Token: 0x060099EF RID: 39407 RVA: 0x001F6E74 File Offset: 0x001F5074
[Token(Token = "0x60099EF")]
[Address(RVA = "0x62B8E0", Offset = "0x62A8E0", VA = "0x18062B8E0", Slot = "9")]
public object ConvertTo(Type toType, object obj)
{
string text = NOEIKACMNJH.MFFBDFHINID(obj);
return NOEIKACMNJH.IGOEEFAAPKD(toType, text);
}
}
}