a
This commit is contained in:
@@ -0,0 +1,240 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Forms
|
||||
{
|
||||
// Token: 0x02001F80 RID: 8064
|
||||
[Token(Token = "0x2001F80")]
|
||||
public class HTTPFormBase
|
||||
{
|
||||
// Token: 0x1700207A RID: 8314
|
||||
// (get) Token: 0x0600CC38 RID: 52280 RVA: 0x002EC4D8 File Offset: 0x002EA6D8
|
||||
// (set) Token: 0x0600CC39 RID: 52281 RVA: 0x002EC4EC File Offset: 0x002EA6EC
|
||||
[Token(Token = "0x1700207A")]
|
||||
public List<HTTPFieldData> Fields
|
||||
{
|
||||
[Token(Token = "0x600CC38")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get;
|
||||
[Token(Token = "0x600CC39")]
|
||||
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x1700207B RID: 8315
|
||||
// (get) Token: 0x0600CC3A RID: 52282 RVA: 0x002EC500 File Offset: 0x002EA700
|
||||
[Token(Token = "0x1700207B")]
|
||||
public bool IsEmpty
|
||||
{
|
||||
[Token(Token = "0x600CC3A")]
|
||||
[Address(RVA = "0x1718440", Offset = "0x1717240", VA = "0x181718440")]
|
||||
get
|
||||
{
|
||||
bool flag;
|
||||
return this.<Fields>k__BackingField == 0 || flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700207C RID: 8316
|
||||
// (get) Token: 0x0600CC3B RID: 52283 RVA: 0x002EC51C File Offset: 0x002EA71C
|
||||
// (set) Token: 0x0600CC3C RID: 52284 RVA: 0x002EC530 File Offset: 0x002EA730
|
||||
[Token(Token = "0x1700207C")]
|
||||
public bool IsChanged
|
||||
{
|
||||
[Token(Token = "0x600CC3B")]
|
||||
[Address(RVA = "0x42C2C0", Offset = "0x42B0C0", VA = "0x18042C2C0")]
|
||||
get;
|
||||
[Token(Token = "0x600CC3C")]
|
||||
[Address(RVA = "0x43DE90", Offset = "0x43CC90", VA = "0x18043DE90")]
|
||||
protected set;
|
||||
}
|
||||
|
||||
// Token: 0x1700207D RID: 8317
|
||||
// (get) Token: 0x0600CC3D RID: 52285 RVA: 0x002EC544 File Offset: 0x002EA744
|
||||
// (set) Token: 0x0600CC3E RID: 52286 RVA: 0x002EC558 File Offset: 0x002EA758
|
||||
[Token(Token = "0x1700207D")]
|
||||
public bool HasBinary
|
||||
{
|
||||
[Token(Token = "0x600CC3D")]
|
||||
[Address(RVA = "0x50FC80", Offset = "0x50EA80", VA = "0x18050FC80")]
|
||||
get;
|
||||
[Token(Token = "0x600CC3E")]
|
||||
[Address(RVA = "0x745E50", Offset = "0x744C50", VA = "0x180745E50")]
|
||||
protected set;
|
||||
}
|
||||
|
||||
// Token: 0x1700207E RID: 8318
|
||||
// (get) Token: 0x0600CC3F RID: 52287 RVA: 0x002EC56C File Offset: 0x002EA76C
|
||||
// (set) Token: 0x0600CC40 RID: 52288 RVA: 0x002EC580 File Offset: 0x002EA780
|
||||
[Token(Token = "0x1700207E")]
|
||||
public bool HasLongValue
|
||||
{
|
||||
[Token(Token = "0x600CC3F")]
|
||||
[Address(RVA = "0x761D60", Offset = "0x760B60", VA = "0x180761D60")]
|
||||
get;
|
||||
[Token(Token = "0x600CC40")]
|
||||
[Address(RVA = "0x745E60", Offset = "0x744C60", VA = "0x180745E60")]
|
||||
protected set;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC41 RID: 52289 RVA: 0x002EC594 File Offset: 0x002EA794
|
||||
[Token(Token = "0x600CC41")]
|
||||
[Address(RVA = "0x1718040", Offset = "0x1716E40", VA = "0x181718040")]
|
||||
public void AddBinaryData(string fieldName, byte[] content)
|
||||
{
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
this.AddBinaryData(fieldName, content, num2, num);
|
||||
}
|
||||
|
||||
// Token: 0x0600CC42 RID: 52290 RVA: 0x002EC5B0 File Offset: 0x002EA7B0
|
||||
[Token(Token = "0x600CC42")]
|
||||
[Address(RVA = "0x1718060", Offset = "0x1716E60", VA = "0x181718060")]
|
||||
public void AddBinaryData(string fieldName, byte[] content, string fileName)
|
||||
{
|
||||
int num = 0;
|
||||
this.AddBinaryData(fieldName, content, fileName, num);
|
||||
}
|
||||
|
||||
// Token: 0x0600CC43 RID: 52291 RVA: 0x002EC5CC File Offset: 0x002EA7CC
|
||||
[Token(Token = "0x600CC43")]
|
||||
[Address(RVA = "0x1718080", Offset = "0x1716E80", VA = "0x181718080")]
|
||||
public void AddBinaryData(string fieldName, byte[] content, string fileName, string mimeType)
|
||||
{
|
||||
if (this.<Fields>k__BackingField == (ulong)0L)
|
||||
{
|
||||
List<HTTPFieldData> list = new List();
|
||||
this.<Fields>k__BackingField = list;
|
||||
}
|
||||
HTTPFieldData httpfieldData = new HTTPFieldData();
|
||||
httpfieldData.<Name>k__BackingField = fieldName;
|
||||
string text;
|
||||
if (fileName == 0)
|
||||
{
|
||||
text = fieldName + ".dat";
|
||||
}
|
||||
httpfieldData.<FileName>k__BackingField = text;
|
||||
httpfieldData.<MimeType>k__BackingField = 0;
|
||||
httpfieldData.<Binary>k__BackingField = content;
|
||||
this.<Fields>k__BackingField.Add(httpfieldData);
|
||||
this.<IsChanged>k__BackingField = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC44 RID: 52292 RVA: 0x002EC63C File Offset: 0x002EA83C
|
||||
[Token(Token = "0x600CC44")]
|
||||
[Address(RVA = "0x17182C0", Offset = "0x17170C0", VA = "0x1817182C0")]
|
||||
public void AddField(string fieldName, string value)
|
||||
{
|
||||
Encoding utf = Encoding.UTF8;
|
||||
this.AddField(fieldName, value, utf);
|
||||
}
|
||||
|
||||
// Token: 0x0600CC45 RID: 52293 RVA: 0x002EC65C File Offset: 0x002EA85C
|
||||
[Token(Token = "0x600CC45")]
|
||||
[Address(RVA = "0x1718190", Offset = "0x1716F90", VA = "0x181718190")]
|
||||
public void AddField(string fieldName, string value, Encoding e)
|
||||
{
|
||||
if (this.<Fields>k__BackingField == (ulong)0L)
|
||||
{
|
||||
List<HTTPFieldData> list = new List();
|
||||
this.<Fields>k__BackingField = list;
|
||||
}
|
||||
int num = 0;
|
||||
HTTPFieldData httpfieldData;
|
||||
httpfieldData.FieldGetter(num, value, e);
|
||||
httpfieldData.<Name>k__BackingField = fieldName;
|
||||
int num2 = 0;
|
||||
httpfieldData.<FileName>k__BackingField = num2;
|
||||
if (e != 0)
|
||||
{
|
||||
string headerName = e.HeaderName;
|
||||
string text = "text/plain; charset=" + headerName;
|
||||
httpfieldData.<MimeType>k__BackingField = text;
|
||||
}
|
||||
httpfieldData.<Text>k__BackingField = value;
|
||||
httpfieldData.<Encoding>k__BackingField = e;
|
||||
this.<Fields>k__BackingField.Add(httpfieldData);
|
||||
this.<IsChanged>k__BackingField = true;
|
||||
bool flag = value.m_stringLength != 256;
|
||||
this.<HasLongValue>k__BackingField = flag;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC46 RID: 52294 RVA: 0x002EC700 File Offset: 0x002EA900
|
||||
[Token(Token = "0x600CC46")]
|
||||
[Address(RVA = "0x1718310", Offset = "0x1717110", VA = "0x181718310", Slot = "4")]
|
||||
public virtual void CopyFrom(HTTPFormBase fields)
|
||||
{
|
||||
List<HTTPFieldData> list = new List(fields.<Fields>k__BackingField);
|
||||
this.<Fields>k__BackingField = list;
|
||||
bool flag = fields.<HasBinary>k__BackingField;
|
||||
this.<HasBinary>k__BackingField = flag;
|
||||
bool flag2 = fields.<HasLongValue>k__BackingField;
|
||||
this.<HasLongValue>k__BackingField = flag2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC47 RID: 52295 RVA: 0x002EC744 File Offset: 0x002EA944
|
||||
[Token(Token = "0x600CC47")]
|
||||
[Address(RVA = "0x17183F0", Offset = "0x17171F0", VA = "0x1817183F0", Slot = "5")]
|
||||
public virtual void PrepareRequest(HTTPRequest request)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC47)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Forms.HTTPFormBase::PrepareRequest(BestHTTP.HTTPRequest)
|
||||
|
||||
---> 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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC48 RID: 52296 RVA: 0x002EC758 File Offset: 0x002EA958
|
||||
[Token(Token = "0x600CC48")]
|
||||
[Address(RVA = "0x17183A0", Offset = "0x17171A0", VA = "0x1817183A0", Slot = "6")]
|
||||
public virtual byte[] GetData()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC48)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.Forms.HTTPFormBase::GetData()
|
||||
|
||||
---> 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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC49 RID: 52297 RVA: 0x002EC76C File Offset: 0x002EA96C
|
||||
[Token(Token = "0x600CC49")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public HTTPFormBase()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04008230 RID: 33328
|
||||
[Token(Token = "0x4008230")]
|
||||
private const int LongLength = 256;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user