oh dear
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F9B RID: 8091
|
||||
[Token(Token = "0x2001F9B")]
|
||||
internal struct BufferDesc
|
||||
{
|
||||
// Token: 0x0600CD03 RID: 52483 RVA: 0x002EE5D4 File Offset: 0x002EC7D4
|
||||
[Token(Token = "0x600CD03")]
|
||||
[Address(RVA = "0x195E3A0", Offset = "0x195D1A0", VA = "0x18195E3A0")]
|
||||
public BufferDesc(byte[] buff)
|
||||
{
|
||||
this.buffer = buff;
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
this.released = utcNow;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD04 RID: 52484 RVA: 0x002EE5F8 File Offset: 0x002EC7F8
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CD04")]
|
||||
[Address(RVA = "0x195E310", Offset = "0x195D110", VA = "0x18195E310")]
|
||||
static BufferDesc()
|
||||
{
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
ulong num;
|
||||
BufferDesc.Empty = num;
|
||||
}
|
||||
|
||||
// Token: 0x04008276 RID: 33398
|
||||
[Token(Token = "0x4008276")]
|
||||
public static readonly BufferDesc Empty;
|
||||
|
||||
// Token: 0x04008277 RID: 33399
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4008277")]
|
||||
public byte[] buffer;
|
||||
|
||||
// Token: 0x04008278 RID: 33400
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4008278")]
|
||||
public DateTime released;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,738 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F8D RID: 8077
|
||||
[Token(Token = "0x2001F8D")]
|
||||
public sealed class BufferPoolMemoryStream : Stream
|
||||
{
|
||||
// Token: 0x0600CC86 RID: 52358 RVA: 0x002ECEFC File Offset: 0x002EB0FC
|
||||
[Token(Token = "0x600CC86")]
|
||||
[Address(RVA = "0x195F6D0", Offset = "0x195E4D0", VA = "0x18195F6D0")]
|
||||
public BufferPoolMemoryStream()
|
||||
{
|
||||
this.canWrite = true;
|
||||
byte[] noData = VariableSizedBufferPool.NoData;
|
||||
this.internalBuffer = noData;
|
||||
int num = noData.Length;
|
||||
this.capacity = num;
|
||||
this.expandable = true;
|
||||
this.allowGetBuffer = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC87 RID: 52359 RVA: 0x002ECF48 File Offset: 0x002EB148
|
||||
[Token(Token = "0x600CC87")]
|
||||
[Address(RVA = "0x195F500", Offset = "0x195E300", VA = "0x18195F500")]
|
||||
public BufferPoolMemoryStream(int capacity)
|
||||
{
|
||||
this.canWrite = true;
|
||||
if (capacity > 0)
|
||||
{
|
||||
byte[] array = VariableSizedBufferPool.Get((long)capacity, true);
|
||||
}
|
||||
byte[] noData = VariableSizedBufferPool.NoData;
|
||||
this.internalBuffer = noData;
|
||||
int num = noData.Length;
|
||||
this.capacity = num;
|
||||
this.expandable = true;
|
||||
this.allowGetBuffer = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC88 RID: 52360 RVA: 0x002ECFA4 File Offset: 0x002EB1A4
|
||||
[Token(Token = "0x600CC88")]
|
||||
[Address(RVA = "0x195F780", Offset = "0x195E580", VA = "0x18195F780")]
|
||||
public BufferPoolMemoryStream(byte[] buffer)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC88)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::.ctor(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:ArgumentNullException(var_5_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("buffer")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600CC89 RID: 52361 RVA: 0x002ECFDC File Offset: 0x002EB1DC
|
||||
[Token(Token = "0x600CC89")]
|
||||
[Address(RVA = "0x195F430", Offset = "0x195E230", VA = "0x18195F430")]
|
||||
public BufferPoolMemoryStream(byte[] buffer, bool writable)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC89)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::.ctor(System.Byte[],System.Boolean)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1F:
|
||||
stloc:ArgumentNullException(var_4_29, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("buffer")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600CC8A RID: 52362 RVA: 0x002ED014 File Offset: 0x002EB214
|
||||
[Token(Token = "0x600CC8A")]
|
||||
[Address(RVA = "0x195F390", Offset = "0x195E190", VA = "0x18195F390")]
|
||||
public BufferPoolMemoryStream(byte[] buffer, int index, int count)
|
||||
{
|
||||
ulong num;
|
||||
ulong num2;
|
||||
this.InternalConstructor(buffer, index, count, num != 0UL, num2 != 0UL);
|
||||
}
|
||||
|
||||
// Token: 0x0600CC8B RID: 52363 RVA: 0x002ED034 File Offset: 0x002EB234
|
||||
[Token(Token = "0x600CC8B")]
|
||||
[Address(RVA = "0x195F840", Offset = "0x195E640", VA = "0x18195F840")]
|
||||
public BufferPoolMemoryStream(byte[] buffer, int index, int count, bool writable)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CC8C RID: 52364 RVA: 0x002ED048 File Offset: 0x002EB248
|
||||
[Token(Token = "0x600CC8C")]
|
||||
[Address(RVA = "0x195F620", Offset = "0x195E420", VA = "0x18195F620")]
|
||||
public BufferPoolMemoryStream(byte[] buffer, int index, int count, bool writable, bool publiclyVisible)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CC8D RID: 52365 RVA: 0x002ED05C File Offset: 0x002EB25C
|
||||
[Token(Token = "0x600CC8D")]
|
||||
[Address(RVA = "0x195E700", Offset = "0x195D500", VA = "0x18195E700")]
|
||||
private void InternalConstructor(byte[] buffer, int index, int count, bool writable, bool publicallyVisible)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC8D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::InternalConstructor(System.Byte[],System.Int32,System.Int32,System.Boolean,System.Boolean)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_48:
|
||||
stloc:ArgumentNullException(var_1_52, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("buffer")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600CC8E RID: 52366 RVA: 0x002ED0BC File Offset: 0x002EB2BC
|
||||
[Token(Token = "0x600CC8E")]
|
||||
[Address(RVA = "0x195E4C0", Offset = "0x195D2C0", VA = "0x18195E4C0")]
|
||||
private void CheckIfClosedThrowDisposed()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC8E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::CheckIfClosedThrowDisposed()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0A:
|
||||
stloc:ObjectDisposedException(var_0_14, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x17002086 RID: 8326
|
||||
// (get) Token: 0x0600CC8F RID: 52367 RVA: 0x002ED0E0 File Offset: 0x002EB2E0
|
||||
[Token(Token = "0x17002086")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600CC8F")]
|
||||
[Address(RVA = "0x195F8E0", Offset = "0x195E6E0", VA = "0x18195F8E0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return !this.streamClosed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002087 RID: 8327
|
||||
// (get) Token: 0x0600CC90 RID: 52368 RVA: 0x002ED0F8 File Offset: 0x002EB2F8
|
||||
[Token(Token = "0x17002087")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600CC90")]
|
||||
[Address(RVA = "0x195F8E0", Offset = "0x195E6E0", VA = "0x18195F8E0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return !this.streamClosed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002088 RID: 8328
|
||||
// (get) Token: 0x0600CC91 RID: 52369 RVA: 0x002ED110 File Offset: 0x002EB310
|
||||
[Token(Token = "0x17002088")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600CC91")]
|
||||
[Address(RVA = "0x195F8F0", Offset = "0x195E6F0", VA = "0x18195F8F0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
if (this.streamClosed)
|
||||
{
|
||||
}
|
||||
return this.canWrite;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002089 RID: 8329
|
||||
// (get) Token: 0x0600CC92 RID: 52370 RVA: 0x002ED130 File Offset: 0x002EB330
|
||||
// (set) Token: 0x0600CC93 RID: 52371 RVA: 0x002ED158 File Offset: 0x002EB358
|
||||
[Token(Token = "0x17002089")]
|
||||
public int Capacity
|
||||
{
|
||||
[Token(Token = "0x600CC92")]
|
||||
[Address(RVA = "0x195F900", Offset = "0x195E700", VA = "0x18195F900")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC92)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Extensions.BufferPoolMemoryStream::get_Capacity()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:ObjectDisposedException(var_0_1A, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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(Token = "0x600CC93")]
|
||||
[Address(RVA = "0x195FA50", Offset = "0x195E850", VA = "0x18195FA50")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC93)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::set_Capacity(System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_6E:
|
||||
stloc:ObjectDisposedException(var_6_78, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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: 0x1700208A RID: 8330
|
||||
// (get) Token: 0x0600CC94 RID: 52372 RVA: 0x002ED1E0 File Offset: 0x002EB3E0
|
||||
[Token(Token = "0x1700208A")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600CC94")]
|
||||
[Address(RVA = "0x195F970", Offset = "0x195E770", VA = "0x18195F970", Slot = "10")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC94)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Extensions.BufferPoolMemoryStream::get_Length()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:ObjectDisposedException(var_1_1A, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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: 0x1700208B RID: 8331
|
||||
// (get) Token: 0x0600CC95 RID: 52373 RVA: 0x002ED208 File Offset: 0x002EB408
|
||||
// (set) Token: 0x0600CC96 RID: 52374 RVA: 0x002ED230 File Offset: 0x002EB430
|
||||
[Token(Token = "0x1700208B")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600CC95")]
|
||||
[Address(RVA = "0x195F9E0", Offset = "0x195E7E0", VA = "0x18195F9E0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC95)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Extensions.BufferPoolMemoryStream::get_Position()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:ObjectDisposedException(var_1_1A, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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(Token = "0x600CC96")]
|
||||
[Address(RVA = "0x195FD00", Offset = "0x195EB00", VA = "0x18195FD00", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC96)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::set_Position(System.Int64)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1C:
|
||||
stloc:ObjectDisposedException(var_1_26, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600CC97 RID: 52375 RVA: 0x002ED264 File Offset: 0x002EB464
|
||||
[Token(Token = "0x600CC97")]
|
||||
[Address(RVA = "0x195E530", Offset = "0x195D330", VA = "0x18195E530", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
byte[] array = this.internalBuffer;
|
||||
this.expandable = false;
|
||||
if (array != 0)
|
||||
{
|
||||
VariableSizedBufferPool.Release(array);
|
||||
}
|
||||
this.internalBuffer = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC98 RID: 52376 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600CC98")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600CC99 RID: 52377 RVA: 0x002ED294 File Offset: 0x002EB494
|
||||
[Token(Token = "0x600CC99")]
|
||||
[Address(RVA = "0x195E6A0", Offset = "0x195D4A0", VA = "0x18195E6A0")]
|
||||
public byte[] GetBuffer()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC99)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.Extensions.BufferPoolMemoryStream::GetBuffer()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:UnauthorizedAccessException(var_0_15, newobj:UnauthorizedAccessException(UnauthorizedAccessException::.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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600CC9A RID: 52378 RVA: 0x002ED2B8 File Offset: 0x002EB4B8
|
||||
[Token(Token = "0x600CC9A")]
|
||||
[Address(RVA = "0x195E8E0", Offset = "0x195D6E0", VA = "0x18195E8E0", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC9A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Extensions.BufferPoolMemoryStream::Read(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4B:
|
||||
stloc:ObjectDisposedException(var_4_55, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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: 0x0600CC9B RID: 52379 RVA: 0x002ED31C File Offset: 0x002EB51C
|
||||
[Token(Token = "0x600CC9B")]
|
||||
[Address(RVA = "0x195E830", Offset = "0x195D630", VA = "0x18195E830", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC9B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Extensions.BufferPoolMemoryStream::ReadByte()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2D:
|
||||
stloc:ObjectDisposedException(var_4_37, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600CC9C RID: 52380 RVA: 0x002ED364 File Offset: 0x002EB564
|
||||
[Token(Token = "0x600CC9C")]
|
||||
[Address(RVA = "0x195EA90", Offset = "0x195D890", VA = "0x18195EA90", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin loc)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC9C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Extensions.BufferPoolMemoryStream::Seek(System.Int64,System.IO.SeekOrigin)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_34:
|
||||
stloc:ArgumentException(var_3_43, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("loc"), ldstr:string("Invalid SeekOrigin")))
|
||||
}
|
||||
|
||||
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: 0x0600CC9D RID: 52381 RVA: 0x002ED3B4 File Offset: 0x002EB5B4
|
||||
[Token(Token = "0x600CC9D")]
|
||||
[Address(RVA = "0x195E410", Offset = "0x195D210", VA = "0x18195E410")]
|
||||
private int CalculateNewCapacity(int minimum)
|
||||
{
|
||||
int num = this.capacity;
|
||||
num += num;
|
||||
if (minimum >= num)
|
||||
{
|
||||
num = minimum;
|
||||
}
|
||||
if (!Mathf.IsPowerOfTwo(num))
|
||||
{
|
||||
return Mathf.NextPowerOfTwo(num);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600CC9E RID: 52382 RVA: 0x002ED3E4 File Offset: 0x002EB5E4
|
||||
[Token(Token = "0x600CC9E")]
|
||||
[Address(RVA = "0x195E5B0", Offset = "0x195D3B0", VA = "0x18195E5B0")]
|
||||
private void Expand(int newSize)
|
||||
{
|
||||
int num = this.capacity;
|
||||
int num2 = this.dirty_bytes;
|
||||
if (num2 > 0)
|
||||
{
|
||||
int num3 = this.length;
|
||||
Array.Clear(this.internalBuffer, num3, num2);
|
||||
this.dirty_bytes = (int)((ulong)0L);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CC9F RID: 52383 RVA: 0x002ED42C File Offset: 0x002EB62C
|
||||
[Token(Token = "0x600CC9F")]
|
||||
[Address(RVA = "0x195EC60", Offset = "0x195DA60", VA = "0x18195EC60", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC9F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::SetLength(System.Int64)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_57:
|
||||
stloc:ObjectDisposedException(var_3_61, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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: 0x0600CCA0 RID: 52384 RVA: 0x002ED49C File Offset: 0x002EB69C
|
||||
[Token(Token = "0x600CCA0")]
|
||||
[Address(RVA = "0x195EEC0", Offset = "0x195DCC0", VA = "0x18195EEC0")]
|
||||
public byte[] ToArray()
|
||||
{
|
||||
int num = this.length;
|
||||
if (num > 0)
|
||||
{
|
||||
int num2 = 0;
|
||||
byte[] array = VariableSizedBufferPool.Get((long)num, num2 != 0);
|
||||
}
|
||||
byte[] noData = VariableSizedBufferPool.NoData;
|
||||
byte[] array2 = this.internalBuffer;
|
||||
if (array2 != 0)
|
||||
{
|
||||
int num3 = this.initialIndex;
|
||||
int num4 = 0;
|
||||
Buffer.BlockCopy(array2, num3, noData, num4, num);
|
||||
}
|
||||
return noData;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCA1 RID: 52385 RVA: 0x002ED4EC File Offset: 0x002EB6EC
|
||||
[Token(Token = "0x600CCA1")]
|
||||
[Address(RVA = "0x195EDE0", Offset = "0x195DBE0", VA = "0x18195EDE0")]
|
||||
public byte[] ToArray(bool canBeLarger)
|
||||
{
|
||||
int num = this.length;
|
||||
if (num > 0)
|
||||
{
|
||||
byte[] array = VariableSizedBufferPool.Get((long)num, canBeLarger);
|
||||
}
|
||||
byte[] noData = VariableSizedBufferPool.NoData;
|
||||
byte[] array2 = this.internalBuffer;
|
||||
if (array2 != 0)
|
||||
{
|
||||
int num2 = this.initialIndex;
|
||||
int num3 = 0;
|
||||
Buffer.BlockCopy(array2, num2, noData, num3, num);
|
||||
}
|
||||
return noData;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCA2 RID: 52386 RVA: 0x002ED538 File Offset: 0x002EB738
|
||||
[Token(Token = "0x600CCA2")]
|
||||
[Address(RVA = "0x195F1A0", Offset = "0x195DFA0", VA = "0x18195F1A0", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCA2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::Write(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_59:
|
||||
stloc:ObjectDisposedException(var_6_63, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("MemoryStream")))
|
||||
}
|
||||
|
||||
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: 0x0600CCA3 RID: 52387 RVA: 0x002ED5AC File Offset: 0x002EB7AC
|
||||
[Token(Token = "0x600CCA3")]
|
||||
[Address(RVA = "0x195EF90", Offset = "0x195DD90", VA = "0x18195EF90", Slot = "30")]
|
||||
public override void WriteByte(byte value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCA3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::WriteByte(System.Byte)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_58:
|
||||
stloc:NotSupportedException(var_6_62, newobj:NotSupportedException(NotSupportedException::.ctor, ldstr:string("Cannot write to this stream.")))
|
||||
}
|
||||
|
||||
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: 0x0600CCA4 RID: 52388 RVA: 0x002ED61C File Offset: 0x002EB81C
|
||||
[Token(Token = "0x600CCA4")]
|
||||
[Address(RVA = "0x195F0B0", Offset = "0x195DEB0", VA = "0x18195F0B0")]
|
||||
public void WriteTo(Stream stream)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCA4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.BufferPoolMemoryStream::WriteTo(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_32:
|
||||
stloc:ArgumentNullException(var_4_3C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("stream")))
|
||||
}
|
||||
|
||||
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: 0x04008250 RID: 33360
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008250")]
|
||||
private bool canWrite;
|
||||
|
||||
// Token: 0x04008251 RID: 33361
|
||||
[FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x4008251")]
|
||||
private bool allowGetBuffer;
|
||||
|
||||
// Token: 0x04008252 RID: 33362
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4008252")]
|
||||
private int capacity;
|
||||
|
||||
// Token: 0x04008253 RID: 33363
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008253")]
|
||||
private int length;
|
||||
|
||||
// Token: 0x04008254 RID: 33364
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008254")]
|
||||
private byte[] internalBuffer;
|
||||
|
||||
// Token: 0x04008255 RID: 33365
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008255")]
|
||||
private int initialIndex;
|
||||
|
||||
// Token: 0x04008256 RID: 33366
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4008256")]
|
||||
private bool expandable;
|
||||
|
||||
// Token: 0x04008257 RID: 33367
|
||||
[FieldOffset(Offset = "0x45")]
|
||||
[Token(Token = "0x4008257")]
|
||||
private bool streamClosed;
|
||||
|
||||
// Token: 0x04008258 RID: 33368
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4008258")]
|
||||
private int position;
|
||||
|
||||
// Token: 0x04008259 RID: 33369
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4008259")]
|
||||
private int dirty_bytes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F9A RID: 8090
|
||||
[Token(Token = "0x2001F9A")]
|
||||
internal struct BufferStore
|
||||
{
|
||||
// Token: 0x0600CD01 RID: 52481 RVA: 0x002EE580 File Offset: 0x002EC780
|
||||
[Token(Token = "0x600CD01")]
|
||||
[Address(RVA = "0x1712790", Offset = "0x1711590", VA = "0x181712790")]
|
||||
public BufferStore(long size)
|
||||
{
|
||||
this.Size = size;
|
||||
List<BufferDesc> list = new List();
|
||||
this.buffers = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD02 RID: 52482 RVA: 0x002EE5A4 File Offset: 0x002EC7A4
|
||||
[Token(Token = "0x600CD02")]
|
||||
[Address(RVA = "0x17126C0", Offset = "0x17114C0", VA = "0x1817126C0")]
|
||||
public BufferStore(long size, byte[] buffer)
|
||||
{
|
||||
this.Size = size;
|
||||
List<BufferDesc> list = new List();
|
||||
int num = 0;
|
||||
this.buffers = list;
|
||||
list.Add(num);
|
||||
}
|
||||
|
||||
// Token: 0x04008274 RID: 33396
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4008274")]
|
||||
public readonly long Size;
|
||||
|
||||
// Token: 0x04008275 RID: 33397
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4008275")]
|
||||
public List<BufferDesc> buffers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F8E RID: 8078
|
||||
[Token(Token = "0x2001F8E")]
|
||||
public sealed class CircularBuffer<T>
|
||||
{
|
||||
// Token: 0x1700208C RID: 8332
|
||||
// (get) Token: 0x0600CCA5 RID: 52389 RVA: 0x002ED668 File Offset: 0x002EB868
|
||||
// (set) Token: 0x0600CCA6 RID: 52390 RVA: 0x002ED67C File Offset: 0x002EB87C
|
||||
[Token(Token = "0x1700208C")]
|
||||
public int Capacity
|
||||
{
|
||||
[Token(Token = "0x600CCA5")]
|
||||
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
|
||||
get;
|
||||
[Token(Token = "0x600CCA6")]
|
||||
[Address(RVA = "0x536480", Offset = "0x535280", VA = "0x180536480")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x1700208D RID: 8333
|
||||
// (get) Token: 0x0600CCA7 RID: 52391 RVA: 0x002ED690 File Offset: 0x002EB890
|
||||
// (set) Token: 0x0600CCA8 RID: 52392 RVA: 0x002ED6A4 File Offset: 0x002EB8A4
|
||||
[Token(Token = "0x1700208D")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600CCA7")]
|
||||
[Address(RVA = "0x495080", Offset = "0x493E80", VA = "0x180495080")]
|
||||
get;
|
||||
[Token(Token = "0x600CCA8")]
|
||||
[Address(RVA = "0x52EC20", Offset = "0x52DA20", VA = "0x18052EC20")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x1700208E RID: 8334
|
||||
[Token(Token = "0x1700208E")]
|
||||
public T this[int idx]
|
||||
{
|
||||
[Token(Token = "0x600CCA9")]
|
||||
[Address(RVA = "0x2A33050", Offset = "0x2A31E50", VA = "0x182A33050")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
[Token(Token = "0x600CCAA")]
|
||||
[Address(RVA = "0x2A331C0", Offset = "0x2A31FC0", VA = "0x182A331C0")]
|
||||
set
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCAB RID: 52395 RVA: 0x002ED6B8 File Offset: 0x002EB8B8
|
||||
[Token(Token = "0x600CCAB")]
|
||||
[Address(RVA = "0x2A32FF0", Offset = "0x2A31DF0", VA = "0x182A32FF0")]
|
||||
public CircularBuffer(int capacity)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CCAC RID: 52396 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600CCAC")]
|
||||
[Address(RVA = "0x2A32CA0", Offset = "0x2A31AA0", VA = "0x182A32CA0")]
|
||||
public void Add(T element)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600CCAD RID: 52397 RVA: 0x002ED6D4 File Offset: 0x002EB8D4
|
||||
[Token(Token = "0x600CCAD")]
|
||||
[Address(RVA = "0x2A32FE0", Offset = "0x2A31DE0", VA = "0x182A32FE0")]
|
||||
public void Clear()
|
||||
{
|
||||
int num = 0;
|
||||
this.startIdx = num;
|
||||
}
|
||||
|
||||
// Token: 0x0400825C RID: 33372
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400825C")]
|
||||
private T[] buffer;
|
||||
|
||||
// Token: 0x0400825D RID: 33373
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400825D")]
|
||||
private int startIdx;
|
||||
|
||||
// Token: 0x0400825E RID: 33374
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400825E")]
|
||||
private int endIdx;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F92 RID: 8082
|
||||
[Token(Token = "0x2001F92")]
|
||||
public static class ExceptionHelper
|
||||
{
|
||||
// Token: 0x0600CCD5 RID: 52437 RVA: 0x002EDEA4 File Offset: 0x002EC0A4
|
||||
[Token(Token = "0x600CCD5")]
|
||||
[Address(RVA = "0x17127F0", Offset = "0x17115F0", VA = "0x1817127F0")]
|
||||
public static Exception ServerClosedTCPStream()
|
||||
{
|
||||
return new Exception("TCP Stream closed unexpectedly by the remote server");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,513 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F8F RID: 8079
|
||||
[Token(Token = "0x2001F8F")]
|
||||
public static class Extensions
|
||||
{
|
||||
// Token: 0x0600CCAE RID: 52398 RVA: 0x002ED6EC File Offset: 0x002EB8EC
|
||||
[Token(Token = "0x600CCAE")]
|
||||
[Address(RVA = "0x1712840", Offset = "0x1711640", VA = "0x181712840")]
|
||||
public static string AsciiToString(this byte[] bytes)
|
||||
{
|
||||
int length;
|
||||
StringBuilder stringBuilder = new StringBuilder(length);
|
||||
length = bytes.Length;
|
||||
int num = 0;
|
||||
int length2 = bytes.Length;
|
||||
if (num < length2)
|
||||
{
|
||||
byte b;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append((char)b);
|
||||
num++;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCAF RID: 52399 RVA: 0x002ED728 File Offset: 0x002EB928
|
||||
[Token(Token = "0x600CCAF")]
|
||||
[Address(RVA = "0x1712CF0", Offset = "0x1711AF0", VA = "0x181712CF0")]
|
||||
public static byte[] GetASCIIBytes(this string str)
|
||||
{
|
||||
int stringLength = str.m_stringLength;
|
||||
int num = 0;
|
||||
byte[] array = VariableSizedBufferPool.Get((long)stringLength, num != 0);
|
||||
int num2 = 0;
|
||||
if (num2 < str.m_stringLength)
|
||||
{
|
||||
char c = str[num2];
|
||||
num2++;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB0 RID: 52400 RVA: 0x002ED768 File Offset: 0x002EB968
|
||||
[Token(Token = "0x600CCB0")]
|
||||
[Address(RVA = "0x1713B60", Offset = "0x1712960", VA = "0x181713B60")]
|
||||
public static void SendAsASCII(this BinaryWriter stream, string str)
|
||||
{
|
||||
int num = 0;
|
||||
if (num < str.m_stringLength)
|
||||
{
|
||||
char c = str[num];
|
||||
stream.Write(c != '\0');
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB1 RID: 52401 RVA: 0x002ED79C File Offset: 0x002EB99C
|
||||
[Token(Token = "0x600CCB1")]
|
||||
[Address(RVA = "0x17140B0", Offset = "0x1712EB0", VA = "0x1817140B0")]
|
||||
public static void WriteLine(this Stream fs)
|
||||
{
|
||||
int num = fs.ReadByte();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB2 RID: 52402 RVA: 0x002ED7B8 File Offset: 0x002EB9B8
|
||||
[Token(Token = "0x600CCB2")]
|
||||
[Address(RVA = "0x1714230", Offset = "0x1713030", VA = "0x181714230")]
|
||||
public static void WriteLine(this Stream fs, string line)
|
||||
{
|
||||
byte[] asciibytes = line.GetASCIIBytes();
|
||||
int num = fs.ReadByte();
|
||||
fs.WriteLine();
|
||||
VariableSizedBufferPool.Release(asciibytes);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB3 RID: 52403 RVA: 0x002ED7E8 File Offset: 0x002EB9E8
|
||||
[Token(Token = "0x600CCB3")]
|
||||
[Address(RVA = "0x1714140", Offset = "0x1712F40", VA = "0x181714140")]
|
||||
public static void WriteLine(this Stream fs, string format, params object[] values)
|
||||
{
|
||||
byte[] asciibytes = string.Format(format, values).GetASCIIBytes();
|
||||
int num = fs.ReadByte();
|
||||
fs.WriteLine();
|
||||
VariableSizedBufferPool.Release(asciibytes);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB4 RID: 52404 RVA: 0x002ED81C File Offset: 0x002EBA1C
|
||||
[Token(Token = "0x600CCB4")]
|
||||
[Address(RVA = "0x1712DD0", Offset = "0x1711BD0", VA = "0x181712DD0")]
|
||||
public static string GetRequestPathAndQueryURL(this Uri uri)
|
||||
{
|
||||
string parts = uri.GetParts(UriComponents.PathAndQuery, UriFormat.UriEscaped);
|
||||
return "/";
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB5 RID: 52405 RVA: 0x002ED840 File Offset: 0x002EBA40
|
||||
[Token(Token = "0x600CCB5")]
|
||||
[Address(RVA = "0x1712B50", Offset = "0x1711950", VA = "0x181712B50")]
|
||||
public static string[] FindOption(this string str, string option)
|
||||
{
|
||||
string text = str.ToLower();
|
||||
(new char[1])[0] = (char)((uint)44);
|
||||
string text2 = option.ToLower();
|
||||
int num = 0;
|
||||
string[] array;
|
||||
int length = array.Length;
|
||||
if (num < length)
|
||||
{
|
||||
string text3 = array[num];
|
||||
int num2 = 0;
|
||||
if (!text3.Contains(text2))
|
||||
{
|
||||
num++;
|
||||
}
|
||||
string text4 = array[num];
|
||||
return text4.Split(new char[] { (char)((uint)61) }, (StringSplitOptions)num2);
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB6 RID: 52406 RVA: 0x002ED8C4 File Offset: 0x002EBAC4
|
||||
[Token(Token = "0x600CCB6")]
|
||||
[Address(RVA = "0x6D84B0", Offset = "0x6D72B0", VA = "0x1806D84B0")]
|
||||
public static void WriteArray(this Stream stream, byte[] array)
|
||||
{
|
||||
int num = stream.ReadByte();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB7 RID: 52407 RVA: 0x002ED8E0 File Offset: 0x002EBAE0
|
||||
[Token(Token = "0x600CCB7")]
|
||||
[Address(RVA = "0x1712E40", Offset = "0x1711C40", VA = "0x181712E40")]
|
||||
public static bool IsHostIsAnIPAddress(this Uri uri)
|
||||
{
|
||||
int num = 0;
|
||||
if (!(uri == num))
|
||||
{
|
||||
string host = uri.Host;
|
||||
if (!string.IsNullOrEmpty(host))
|
||||
{
|
||||
string text = host.Trim();
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
bool flag2;
|
||||
if (!string.IsNullOrEmpty(uri.Host) && flag2)
|
||||
{
|
||||
bool flag3;
|
||||
return flag3;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB8 RID: 52408 RVA: 0x002ED938 File Offset: 0x002EBB38
|
||||
[Token(Token = "0x600CCB8")]
|
||||
[Address(RVA = "0x1713050", Offset = "0x1711E50", VA = "0x181713050")]
|
||||
public static bool IsIpV4AddressValid(string address)
|
||||
{
|
||||
if (string.IsNullOrEmpty(address))
|
||||
{
|
||||
}
|
||||
string text = address.Trim();
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB9 RID: 52409 RVA: 0x002ED960 File Offset: 0x002EBB60
|
||||
[Token(Token = "0x600CCB9")]
|
||||
[Address(RVA = "0x1713100", Offset = "0x1711F00", VA = "0x181713100")]
|
||||
public static bool IsIpV6AddressValid(string address)
|
||||
{
|
||||
bool flag;
|
||||
if (!string.IsNullOrEmpty(address) && flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCBA RID: 52410 RVA: 0x002ED984 File Offset: 0x002EBB84
|
||||
[Token(Token = "0x600CCBA")]
|
||||
[Address(RVA = "0x1713D40", Offset = "0x1712B40", VA = "0x181713D40")]
|
||||
public static int ToInt32(this string str, int defaultValue = 0)
|
||||
{
|
||||
if (str != 0)
|
||||
{
|
||||
return int.Parse(str);
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCBB RID: 52411 RVA: 0x002ED9A0 File Offset: 0x002EBBA0
|
||||
[Token(Token = "0x600CCBB")]
|
||||
[Address(RVA = "0x1713DC0", Offset = "0x1712BC0", VA = "0x181713DC0")]
|
||||
public static long ToInt64(this string str, long defaultValue = 0L)
|
||||
{
|
||||
if (str != 0)
|
||||
{
|
||||
return long.Parse(str);
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCBC RID: 52412 RVA: 0x002ED9BC File Offset: 0x002EBBBC
|
||||
[Token(Token = "0x600CCBC")]
|
||||
[Address(RVA = "0x1713C90", Offset = "0x1712A90", VA = "0x181713C90")]
|
||||
public static DateTime ToDateTime(this string str, [Optional] DateTime defaultValue)
|
||||
{
|
||||
if (str != 0)
|
||||
{
|
||||
bool flag = DateTime.TryParse(str, defaultValue);
|
||||
DateTime dateTime;
|
||||
return dateTime;
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCBD RID: 52413 RVA: 0x002ED9D8 File Offset: 0x002EBBD8
|
||||
[Token(Token = "0x600CCBD")]
|
||||
[Address(RVA = "0x1713E40", Offset = "0x1712C40", VA = "0x181713E40")]
|
||||
public static string ToStrOrEmpty(this string str)
|
||||
{
|
||||
if (str != 0)
|
||||
{
|
||||
return str;
|
||||
}
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCBE RID: 52414 RVA: 0x002ED9F0 File Offset: 0x002EBBF0
|
||||
[Token(Token = "0x600CCBE")]
|
||||
[Address(RVA = "0x1712AB0", Offset = "0x17118B0", VA = "0x181712AB0")]
|
||||
public static string CalculateMD5Hash(this string input)
|
||||
{
|
||||
byte[] asciibytes = input.GetASCIIBytes();
|
||||
string text = asciibytes.CalculateMD5Hash();
|
||||
VariableSizedBufferPool.Release(asciibytes);
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCBF RID: 52415 RVA: 0x002EDA14 File Offset: 0x002EBC14
|
||||
[Token(Token = "0x600CCBF")]
|
||||
[Address(RVA = "0x1712910", Offset = "0x1711710", VA = "0x181712910")]
|
||||
public static string CalculateMD5Hash(this byte[] input)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
MD5 md = MD5.Create();
|
||||
byte[] array = md.ComputeHash(input);
|
||||
int length;
|
||||
StringBuilder stringBuilder = new StringBuilder(length);
|
||||
length = array.Length;
|
||||
if (num < array.Length)
|
||||
{
|
||||
num += 32;
|
||||
num += array;
|
||||
string text;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(text);
|
||||
num++;
|
||||
}
|
||||
VariableSizedBufferPool.Release(array);
|
||||
int hashCode = stringBuilder.GetHashCode();
|
||||
if (md != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC0 RID: 52416 RVA: 0x002EDA9C File Offset: 0x002EBC9C
|
||||
[Token(Token = "0x600CCC0")]
|
||||
[Address(RVA = "0x1713A70", Offset = "0x1712870", VA = "0x181713A70")]
|
||||
internal static string Read(this string str, ref int pos, char block, bool needResult = true)
|
||||
{
|
||||
Func<char, bool> func = (char ch) => ch != block;
|
||||
return Extensions.Read(str, ref pos, func, needResult);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC1 RID: 52417 RVA: 0x002EDAD4 File Offset: 0x002EBCD4
|
||||
[Token(Token = "0x600CCC1")]
|
||||
[Address(RVA = "0x1713960", Offset = "0x1712760", VA = "0x181713960")]
|
||||
internal static string Read(this string str, ref int pos, Func<char, bool> block, bool needResult = true)
|
||||
{
|
||||
int stringLength = str.m_stringLength;
|
||||
str.SkipWhiteSpace(ref pos);
|
||||
char c;
|
||||
if (block(c) != 0)
|
||||
{
|
||||
}
|
||||
if (needResult)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC2 RID: 52418 RVA: 0x002EDB04 File Offset: 0x002EBD04
|
||||
[Token(Token = "0x600CCC2")]
|
||||
[Address(RVA = "0x17137A0", Offset = "0x17125A0", VA = "0x1817137A0")]
|
||||
internal static string ReadPossibleQuotedText(this string str, ref int pos)
|
||||
{
|
||||
string empty = string.Empty;
|
||||
if (str != 0)
|
||||
{
|
||||
Func<char, bool> <>9__21_ = Extensions.<>c.<>9__21_0;
|
||||
if (<>9__21_ == 0)
|
||||
{
|
||||
Extensions.<>c.<>9__21_0 = delegate(char ch)
|
||||
{
|
||||
bool flag;
|
||||
return flag;
|
||||
};
|
||||
}
|
||||
string text = Extensions.Read(str, ref pos, <>9__21_, true);
|
||||
}
|
||||
return empty;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC3 RID: 52419 RVA: 0x002EDB54 File Offset: 0x002EBD54
|
||||
[Token(Token = "0x600CCC3")]
|
||||
[Address(RVA = "0x1713BF0", Offset = "0x17129F0", VA = "0x181713BF0")]
|
||||
internal static void SkipWhiteSpace(this string str, ref int pos)
|
||||
{
|
||||
char c;
|
||||
if (char.IsWhiteSpace(c))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC4 RID: 52420 RVA: 0x002EDB70 File Offset: 0x002EBD70
|
||||
[Token(Token = "0x600CCC4")]
|
||||
[Address(RVA = "0x1713E90", Offset = "0x1712C90", VA = "0x181713E90")]
|
||||
internal static string TrimAndLower(this string str)
|
||||
{
|
||||
if (str != 0)
|
||||
{
|
||||
char[] array = new char[str.m_stringLength];
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
if (0 < str.m_stringLength)
|
||||
{
|
||||
char c = str[num2];
|
||||
if (!char.IsWhiteSpace(c) && !char.IsControl(c))
|
||||
{
|
||||
num++;
|
||||
char c2 = char.ToLowerInvariant(c);
|
||||
array[0] = c2;
|
||||
}
|
||||
num2++;
|
||||
}
|
||||
string text;
|
||||
return text;
|
||||
}
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC5 RID: 52421 RVA: 0x002EDBE0 File Offset: 0x002EBDE0
|
||||
[Token(Token = "0x600CCC5")]
|
||||
[Address(RVA = "0x17135C0", Offset = "0x17123C0", VA = "0x1817135C0")]
|
||||
internal static char? Peek(this string str, int pos)
|
||||
{
|
||||
if (pos < str.m_stringLength)
|
||||
{
|
||||
char c = str[pos];
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC6 RID: 52422 RVA: 0x002EDC08 File Offset: 0x002EBE08
|
||||
[Token(Token = "0x600CCC6")]
|
||||
[Address(RVA = "0x17131A0", Offset = "0x1711FA0", VA = "0x1817131A0")]
|
||||
internal static List<HeaderValue> ParseOptionalHeader(this string str)
|
||||
{
|
||||
List<HeaderValue> list = new List();
|
||||
if (str != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (num < str.m_stringLength)
|
||||
{
|
||||
Func<char, bool> <>9__25_ = Extensions.<>c.<>9__25_0;
|
||||
if (<>9__25_ == 0)
|
||||
{
|
||||
Extensions.<>c.<>9__25_0 = delegate(char ch)
|
||||
{
|
||||
bool flag;
|
||||
return flag;
|
||||
};
|
||||
}
|
||||
string text = Extensions.Read(str, num, <>9__25_, true).TrimAndLower();
|
||||
HeaderValue headerValue = new HeaderValue();
|
||||
headerValue.<Key>k__BackingField = text;
|
||||
char c = str[-1];
|
||||
string text2 = str.ReadPossibleQuotedText(num);
|
||||
headerValue.<Value>k__BackingField = text2;
|
||||
list.Add(headerValue);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC7 RID: 52423 RVA: 0x002EDC94 File Offset: 0x002EBE94
|
||||
[Token(Token = "0x600CCC7")]
|
||||
[Address(RVA = "0x17133A0", Offset = "0x17121A0", VA = "0x1817133A0")]
|
||||
internal static List<HeaderValue> ParseQualityParams(this string str)
|
||||
{
|
||||
List<HeaderValue> list = new List();
|
||||
if (str != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (num < str.m_stringLength)
|
||||
{
|
||||
Func<char, bool> <>9__26_ = Extensions.<>c.<>9__26_0;
|
||||
if (<>9__26_ == 0)
|
||||
{
|
||||
Extensions.<>c.<>9__26_0 = delegate(char ch)
|
||||
{
|
||||
bool flag;
|
||||
return flag;
|
||||
};
|
||||
}
|
||||
string text = Extensions.Read(str, num, <>9__26_, true).TrimAndLower();
|
||||
HeaderValue headerValue = new HeaderValue();
|
||||
headerValue.<Key>k__BackingField = text;
|
||||
char c = str[-1];
|
||||
string text2;
|
||||
headerValue.<Value>k__BackingField = text2;
|
||||
list.Add(headerValue);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC8 RID: 52424 RVA: 0x002EDD18 File Offset: 0x002EBF18
|
||||
[Token(Token = "0x600CCC8")]
|
||||
[Address(RVA = "0x1713650", Offset = "0x1712450", VA = "0x181713650")]
|
||||
public static void ReadBuffer(this Stream stream, byte[] buffer)
|
||||
{
|
||||
int num = 0;
|
||||
int num2 = buffer.Length;
|
||||
num2 -= num;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCC9 RID: 52425 RVA: 0x002EDD38 File Offset: 0x002EBF38
|
||||
[Token(Token = "0x600CCC9")]
|
||||
[Address(RVA = "0x17136F0", Offset = "0x17124F0", VA = "0x1817136F0")]
|
||||
public static void ReadBuffer(this Stream stream, byte[] buffer, int length)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CCCA RID: 52426 RVA: 0x002EDD50 File Offset: 0x002EBF50
|
||||
[Token(Token = "0x600CCCA")]
|
||||
[Address(RVA = "0x17144C0", Offset = "0x17132C0", VA = "0x1817144C0")]
|
||||
public static void WriteString(this BufferPoolMemoryStream ms, string str)
|
||||
{
|
||||
object obj = Encoding.UTF8.Clone();
|
||||
byte[] bytes = Encoding.UTF8.GetBytes(str);
|
||||
int num = ms.ReadByte();
|
||||
byte[] array;
|
||||
VariableSizedBufferPool.Release(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCCB RID: 52427 RVA: 0x002EDD90 File Offset: 0x002EBF90
|
||||
[Token(Token = "0x600CCCB")]
|
||||
[Address(RVA = "0x1714020", Offset = "0x1712E20", VA = "0x181714020")]
|
||||
public static void WriteLine(this BufferPoolMemoryStream ms)
|
||||
{
|
||||
byte[] eol = HTTPRequest.EOL;
|
||||
int num = ms.ReadByte();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCCC RID: 52428 RVA: 0x002EDDB0 File Offset: 0x002EBFB0
|
||||
[Token(Token = "0x600CCCC")]
|
||||
[Address(RVA = "0x1714300", Offset = "0x1713100", VA = "0x181714300")]
|
||||
public static void WriteLine(this BufferPoolMemoryStream ms, string str)
|
||||
{
|
||||
object obj = Encoding.UTF8.Clone();
|
||||
byte[] bytes = Encoding.UTF8.GetBytes(str);
|
||||
int num = ms.ReadByte();
|
||||
byte[] array;
|
||||
VariableSizedBufferPool.Release(array);
|
||||
byte[] eol = HTTPRequest.EOL;
|
||||
int num2 = ms.ReadByte();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCCD RID: 52429 RVA: 0x002EDDFC File Offset: 0x002EBFFC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CCCD")]
|
||||
[Address(RVA = "0x17145E0", Offset = "0x17133E0", VA = "0x1817145E0")]
|
||||
static Extensions()
|
||||
{
|
||||
Regex regex = new Regex("\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b", RegexOptions.IgnoreCase);
|
||||
}
|
||||
|
||||
// Token: 0x0400825F RID: 33375
|
||||
[Token(Token = "0x400825F")]
|
||||
private static readonly Regex validIpV4AddressRegex;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BestHTTP.Logger;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F93 RID: 8083
|
||||
[Token(Token = "0x2001F93")]
|
||||
public sealed class HeaderParser : KeyValuePairList
|
||||
{
|
||||
// Token: 0x0600CCD6 RID: 52438 RVA: 0x002EDEBC File Offset: 0x002EC0BC
|
||||
[Token(Token = "0x600CCD6")]
|
||||
[Address(RVA = "0x17280F0", Offset = "0x1726EF0", VA = "0x1817280F0")]
|
||||
public HeaderParser(string headerStr)
|
||||
{
|
||||
List<HeaderValue> list = this.Parse(headerStr);
|
||||
this.<Values>k__BackingField = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCD7 RID: 52439 RVA: 0x002EDEE0 File Offset: 0x002EC0E0
|
||||
[Token(Token = "0x600CCD7")]
|
||||
[Address(RVA = "0x1727F80", Offset = "0x1726D80", VA = "0x181727F80")]
|
||||
private List<HeaderValue> Parse(string headerStr)
|
||||
{
|
||||
List<HeaderValue> list = new List();
|
||||
int stringLength = headerStr.m_stringLength;
|
||||
HeaderValue headerValue = new HeaderValue();
|
||||
list.Add(headerValue);
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F94 RID: 8084
|
||||
[Token(Token = "0x2001F94")]
|
||||
public sealed class HeaderValue
|
||||
{
|
||||
// Token: 0x1700208F RID: 8335
|
||||
// (get) Token: 0x0600CCD8 RID: 52440 RVA: 0x002EDF2C File Offset: 0x002EC12C
|
||||
// (set) Token: 0x0600CCD9 RID: 52441 RVA: 0x002EDF40 File Offset: 0x002EC140
|
||||
[Token(Token = "0x1700208F")]
|
||||
public string Key
|
||||
{
|
||||
[Token(Token = "0x600CCD8")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get;
|
||||
[Token(Token = "0x600CCD9")]
|
||||
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17002090 RID: 8336
|
||||
// (get) Token: 0x0600CCDA RID: 52442 RVA: 0x002EDF54 File Offset: 0x002EC154
|
||||
// (set) Token: 0x0600CCDB RID: 52443 RVA: 0x002EDF68 File Offset: 0x002EC168
|
||||
[Token(Token = "0x17002090")]
|
||||
public string Value
|
||||
{
|
||||
[Token(Token = "0x600CCDA")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get;
|
||||
[Token(Token = "0x600CCDB")]
|
||||
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17002091 RID: 8337
|
||||
// (get) Token: 0x0600CCDC RID: 52444 RVA: 0x002EDF7C File Offset: 0x002EC17C
|
||||
// (set) Token: 0x0600CCDD RID: 52445 RVA: 0x002EDF90 File Offset: 0x002EC190
|
||||
[Token(Token = "0x17002091")]
|
||||
public List<HeaderValue> Options
|
||||
{
|
||||
[Token(Token = "0x600CCDC")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get;
|
||||
[Token(Token = "0x600CCDD")]
|
||||
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17002092 RID: 8338
|
||||
// (get) Token: 0x0600CCDE RID: 52446 RVA: 0x002EDFA4 File Offset: 0x002EC1A4
|
||||
[Token(Token = "0x17002092")]
|
||||
public bool HasValue
|
||||
{
|
||||
[Token(Token = "0x600CCDE")]
|
||||
[Address(RVA = "0x1728620", Offset = "0x1727420", VA = "0x181728620")]
|
||||
get
|
||||
{
|
||||
return !string.IsNullOrEmpty(this.<Value>k__BackingField);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCDF RID: 52447 RVA: 0x002EDFC0 File Offset: 0x002EC1C0
|
||||
[Token(Token = "0x600CCDF")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public HeaderValue()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CCE0 RID: 52448 RVA: 0x002EDFD4 File Offset: 0x002EC1D4
|
||||
[Token(Token = "0x600CCE0")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
public HeaderValue(string key)
|
||||
{
|
||||
this.Key = key;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCE1 RID: 52449 RVA: 0x002EDFF0 File Offset: 0x002EC1F0
|
||||
[Token(Token = "0x600CCE1")]
|
||||
[Address(RVA = "0x1728480", Offset = "0x1727280", VA = "0x181728480")]
|
||||
public void Parse(string headerStr, ref int pos)
|
||||
{
|
||||
this.ParseImplementation(headerStr, ref pos, true);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCE2 RID: 52450 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600CCE2")]
|
||||
[Address(RVA = "0x1728530", Offset = "0x1727330", VA = "0x181728530")]
|
||||
public bool TryGetOption(string key, out HeaderValue option)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600CCE3 RID: 52451 RVA: 0x002EE008 File Offset: 0x002EC208
|
||||
[Token(Token = "0x600CCE3")]
|
||||
[Address(RVA = "0x1728130", Offset = "0x1726F30", VA = "0x181728130")]
|
||||
private void ParseImplementation(string headerStr, ref int pos, bool isOptionIsAnOption)
|
||||
{
|
||||
Func<char, bool> <>9__18_ = HeaderValue.<>c.<>9__18_0;
|
||||
if (<>9__18_ == 0)
|
||||
{
|
||||
HeaderValue.<>c.<>9__18_0 = delegate(char ch)
|
||||
{
|
||||
bool flag3;
|
||||
return flag3;
|
||||
};
|
||||
}
|
||||
int num = 0;
|
||||
string text = Extensions.Read(headerStr, ref pos, <>9__18_, true);
|
||||
this.<Key>k__BackingField = text;
|
||||
char? c;
|
||||
char value = c.value;
|
||||
char value2 = c.value;
|
||||
bool flag = num == 61;
|
||||
if (!isOptionIsAnOption)
|
||||
{
|
||||
}
|
||||
bool flag2 = num == 59;
|
||||
if (num != 59)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
if (!flag2)
|
||||
{
|
||||
goto IL_B1;
|
||||
}
|
||||
HeaderValue headerValue = new HeaderValue();
|
||||
int num2 = 0;
|
||||
headerValue.ParseImplementation(headerStr, ref pos, num2 != 0);
|
||||
List<HeaderValue> list = this.<Options>k__BackingField;
|
||||
if (list == 0)
|
||||
{
|
||||
List<HeaderValue> list2 = new List();
|
||||
this.<Options>k__BackingField = list2;
|
||||
}
|
||||
list.Add(headerValue);
|
||||
}
|
||||
string text2 = headerStr.ReadPossibleQuotedText(ref pos);
|
||||
this.<Value>k__BackingField = text2;
|
||||
IL_B1:
|
||||
if (isOptionIsAnOption)
|
||||
{
|
||||
char? c2 = Extensions.Peek(headerStr, ref pos);
|
||||
char value3 = c2.value;
|
||||
char value4 = c2.value;
|
||||
while (num != 59)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCE4 RID: 52452 RVA: 0x002EE0F0 File Offset: 0x002EC2F0
|
||||
[Token(Token = "0x600CCE4")]
|
||||
[Address(RVA = "0x17284A0", Offset = "0x17272A0", VA = "0x1817284A0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
bool flag = string.IsNullOrEmpty(this.<Value>k__BackingField);
|
||||
string text = this.<Key>k__BackingField;
|
||||
if (flag)
|
||||
{
|
||||
return text;
|
||||
}
|
||||
string text2;
|
||||
return text2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F97 RID: 8087
|
||||
[Token(Token = "0x2001F97")]
|
||||
public sealed class HeartbeatManager
|
||||
{
|
||||
// Token: 0x0600CCE9 RID: 52457 RVA: 0x002EE154 File Offset: 0x002EC354
|
||||
[Token(Token = "0x600CCE9")]
|
||||
[Address(RVA = "0x1728640", Offset = "0x1727440", VA = "0x181728640")]
|
||||
public void Subscribe(IHeartbeat heartbeat)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
List<IHeartbeat> heartbeats = this.Heartbeats;
|
||||
if (!this.Heartbeats.Contains(heartbeat))
|
||||
{
|
||||
this.Heartbeats.Add(heartbeat);
|
||||
}
|
||||
Monitor.Exit(heartbeats);
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCEA RID: 52458 RVA: 0x002EE19C File Offset: 0x002EC39C
|
||||
[Token(Token = "0x600CCEA")]
|
||||
[Address(RVA = "0x1728730", Offset = "0x1727530", VA = "0x181728730")]
|
||||
public void Unsubscribe(IHeartbeat heartbeat)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
List<IHeartbeat> heartbeats = this.Heartbeats;
|
||||
bool flag = this.Heartbeats.Remove(heartbeat);
|
||||
Monitor.Exit(heartbeats);
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCEB RID: 52459 RVA: 0x002EE1D0 File Offset: 0x002EC3D0
|
||||
[Token(Token = "0x600CCEB")]
|
||||
[Address(RVA = "0x1728800", Offset = "0x1727600", VA = "0x181728800")]
|
||||
public void Update()
|
||||
{
|
||||
int num = 0;
|
||||
DateTime lastUpdate = this.LastUpdate;
|
||||
DateTime minValue = DateTime.MinValue;
|
||||
if (!(lastUpdate == minValue))
|
||||
{
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
DateTime lastUpdate2 = this.LastUpdate;
|
||||
TimeSpan timeSpan = utcNow - lastUpdate2;
|
||||
DateTime utcNow2 = DateTime.UtcNow;
|
||||
this.LastUpdate = utcNow2;
|
||||
List<IHeartbeat> heartbeats = this.Heartbeats;
|
||||
IHeartbeat[] updateArray = this.UpdateArray;
|
||||
if (updateArray != 0)
|
||||
{
|
||||
int size = this.Heartbeats._size;
|
||||
if (updateArray.Length >= size)
|
||||
{
|
||||
goto IL_7F;
|
||||
}
|
||||
}
|
||||
List<IHeartbeat> heartbeats2 = this.Heartbeats;
|
||||
IL_7F:
|
||||
int size2 = this.Heartbeats._size;
|
||||
List<IHeartbeat> heartbeats3 = this.Heartbeats;
|
||||
int num2 = 0;
|
||||
Monitor.Exit(heartbeats);
|
||||
if (num != 0)
|
||||
{
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
IHeartbeat heartbeat = this.UpdateArray[num2];
|
||||
num2++;
|
||||
}
|
||||
DateTime utcNow3 = DateTime.UtcNow;
|
||||
this.LastUpdate = utcNow3;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCEC RID: 52460 RVA: 0x002EE2D0 File Offset: 0x002EC4D0
|
||||
[Token(Token = "0x600CCEC")]
|
||||
[Address(RVA = "0x1728A80", Offset = "0x1727880", VA = "0x181728A80")]
|
||||
public HeartbeatManager()
|
||||
{
|
||||
List<IHeartbeat> list = new List();
|
||||
this.Heartbeats = list;
|
||||
DateTime minValue = DateTime.MinValue;
|
||||
this.LastUpdate = minValue;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400826A RID: 33386
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400826A")]
|
||||
private List<IHeartbeat> Heartbeats;
|
||||
|
||||
// Token: 0x0400826B RID: 33387
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400826B")]
|
||||
private IHeartbeat[] UpdateArray;
|
||||
|
||||
// Token: 0x0400826C RID: 33388
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400826C")]
|
||||
private DateTime LastUpdate;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F96 RID: 8086
|
||||
[Token(Token = "0x2001F96")]
|
||||
public interface IHeartbeat
|
||||
{
|
||||
// Token: 0x0600CCE8 RID: 52456
|
||||
[Token(Token = "0x600CCE8")]
|
||||
[Address(Slot = "0")]
|
||||
void OnHeartbeatUpdate(TimeSpan dif);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F98 RID: 8088
|
||||
[Token(Token = "0x2001F98")]
|
||||
public class KeyValuePairList
|
||||
{
|
||||
// Token: 0x17002093 RID: 8339
|
||||
// (get) Token: 0x0600CCED RID: 52461 RVA: 0x002EE300 File Offset: 0x002EC500
|
||||
// (set) Token: 0x0600CCEE RID: 52462 RVA: 0x002EE314 File Offset: 0x002EC514
|
||||
[Token(Token = "0x17002093")]
|
||||
public List<HeaderValue> Values
|
||||
{
|
||||
[Token(Token = "0x600CCED")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get;
|
||||
[Token(Token = "0x600CCEE")]
|
||||
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
|
||||
protected set;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCEF RID: 52463 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600CCEF")]
|
||||
[Address(RVA = "0x1728B20", Offset = "0x1727920", VA = "0x181728B20")]
|
||||
public bool TryGet(string valueKeyName, out HeaderValue param)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF0 RID: 52464 RVA: 0x002EE328 File Offset: 0x002EC528
|
||||
[Token(Token = "0x600CCF0")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public KeyValuePairList()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,385 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F99 RID: 8089
|
||||
[Token(Token = "0x2001F99")]
|
||||
public class ReadOnlyBufferedStream : Stream
|
||||
{
|
||||
// Token: 0x17002094 RID: 8340
|
||||
// (get) Token: 0x0600CCF1 RID: 52465 RVA: 0x002EE33C File Offset: 0x002EC53C
|
||||
// (set) Token: 0x0600CCF2 RID: 52466 RVA: 0x002EE350 File Offset: 0x002EC550
|
||||
[Token(Token = "0x17002094")]
|
||||
public bool CheckForDataAvailability
|
||||
{
|
||||
[Token(Token = "0x600CCF1")]
|
||||
[Address(RVA = "0x494270", Offset = "0x493070", VA = "0x180494270")]
|
||||
get;
|
||||
[Token(Token = "0x600CCF2")]
|
||||
[Address(RVA = "0x494500", Offset = "0x493300", VA = "0x180494500")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF3 RID: 52467 RVA: 0x002EE364 File Offset: 0x002EC564
|
||||
[Token(Token = "0x600CCF3")]
|
||||
[Address(RVA = "0x17292A0", Offset = "0x17280A0", VA = "0x1817292A0")]
|
||||
public ReadOnlyBufferedStream(Stream nstream)
|
||||
{
|
||||
this.stream = nstream;
|
||||
byte[] array;
|
||||
this.buf = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF4 RID: 52468 RVA: 0x002EE388 File Offset: 0x002EC588
|
||||
[Token(Token = "0x600CCF4")]
|
||||
[Address(RVA = "0x1729030", Offset = "0x1727E30", VA = "0x181729030", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int size)
|
||||
{
|
||||
int num2;
|
||||
do
|
||||
{
|
||||
int num = this.available;
|
||||
num2 = 0;
|
||||
if (size <= num)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (num > 0)
|
||||
{
|
||||
int num3 = this.pos;
|
||||
Array.Copy(this.buf, num3, buffer, size, num);
|
||||
int num4 = this.available;
|
||||
this.available = num2;
|
||||
}
|
||||
Stream stream = this.stream;
|
||||
int length = this.buf.Length;
|
||||
this.pos = num2;
|
||||
int num5 = 0;
|
||||
Array.Copy(this.buf, num5, buffer, offset, size);
|
||||
}
|
||||
while (num2 <= 0);
|
||||
int num6 = this.pos;
|
||||
Array.Copy(this.buf, num6, buffer, size, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF5 RID: 52469 RVA: 0x002EE428 File Offset: 0x002EC628
|
||||
[Token(Token = "0x600CCF5")]
|
||||
[Address(RVA = "0x1728F00", Offset = "0x1727D00", VA = "0x181728F00", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
int num = this.available;
|
||||
Stream stream = this.stream;
|
||||
byte[] array = this.buf;
|
||||
this.pos = (int)((ulong)0L);
|
||||
this.pos = (int)((ulong)1L);
|
||||
byte b = this.buf[0];
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF6 RID: 52470 RVA: 0x002EE494 File Offset: 0x002EC694
|
||||
[Token(Token = "0x600CCF6")]
|
||||
[Address(RVA = "0x1728E40", Offset = "0x1727C40", VA = "0x181728E40", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
byte[] array = this.buf;
|
||||
if (array != 0)
|
||||
{
|
||||
VariableSizedBufferPool.Release(array);
|
||||
}
|
||||
this.buf = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x17002095 RID: 8341
|
||||
// (get) Token: 0x0600CCF7 RID: 52471 RVA: 0x002EE4BC File Offset: 0x002EC6BC
|
||||
[Token(Token = "0x17002095")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600CCF7")]
|
||||
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002096 RID: 8342
|
||||
// (get) Token: 0x0600CCF8 RID: 52472 RVA: 0x002EE4CC File Offset: 0x002EC6CC
|
||||
[Token(Token = "0x17002096")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600CCF8")]
|
||||
[Address(RVA = "0x1729340", Offset = "0x1728140", VA = "0x181729340", Slot = "8")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCF8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.Extensions.ReadOnlyBufferedStream::get_CanSeek()
|
||||
|
||||
---> 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: 0x17002097 RID: 8343
|
||||
// (get) Token: 0x0600CCF9 RID: 52473 RVA: 0x002EE4E0 File Offset: 0x002EC6E0
|
||||
[Token(Token = "0x17002097")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600CCF9")]
|
||||
[Address(RVA = "0x1729390", Offset = "0x1728190", VA = "0x181729390", Slot = "9")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCF9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.Extensions.ReadOnlyBufferedStream::get_CanWrite()
|
||||
|
||||
---> 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: 0x17002098 RID: 8344
|
||||
// (get) Token: 0x0600CCFA RID: 52474 RVA: 0x002EE4F4 File Offset: 0x002EC6F4
|
||||
[Token(Token = "0x17002098")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600CCFA")]
|
||||
[Address(RVA = "0x17293E0", Offset = "0x17281E0", VA = "0x1817293E0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCFA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Extensions.ReadOnlyBufferedStream::get_Length()
|
||||
|
||||
---> 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: 0x17002099 RID: 8345
|
||||
// (get) Token: 0x0600CCFB RID: 52475 RVA: 0x002EE508 File Offset: 0x002EC708
|
||||
// (set) Token: 0x0600CCFC RID: 52476 RVA: 0x002EE51C File Offset: 0x002EC71C
|
||||
[Token(Token = "0x17002099")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600CCFB")]
|
||||
[Address(RVA = "0x1729430", Offset = "0x1728230", VA = "0x181729430", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCFB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Extensions.ReadOnlyBufferedStream::get_Position()
|
||||
|
||||
---> 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(Token = "0x600CCFC")]
|
||||
[Address(RVA = "0x1729480", Offset = "0x1728280", VA = "0x181729480", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCFC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.ReadOnlyBufferedStream::set_Position(System.Int64)
|
||||
|
||||
---> 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: 0x0600CCFD RID: 52477 RVA: 0x002EE530 File Offset: 0x002EC730
|
||||
[Token(Token = "0x600CCFD")]
|
||||
[Address(RVA = "0x1728EB0", Offset = "0x1727CB0", VA = "0x181728EB0", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCFD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.ReadOnlyBufferedStream::Flush()
|
||||
|
||||
---> 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: 0x0600CCFE RID: 52478 RVA: 0x002EE544 File Offset: 0x002EC744
|
||||
[Token(Token = "0x600CCFE")]
|
||||
[Address(RVA = "0x17291B0", Offset = "0x1727FB0", VA = "0x1817291B0", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCFE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Extensions.ReadOnlyBufferedStream::Seek(System.Int64,System.IO.SeekOrigin)
|
||||
|
||||
---> 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: 0x0600CCFF RID: 52479 RVA: 0x002EE558 File Offset: 0x002EC758
|
||||
[Token(Token = "0x600CCFF")]
|
||||
[Address(RVA = "0x1729200", Offset = "0x1728000", VA = "0x181729200", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCFF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.ReadOnlyBufferedStream::SetLength(System.Int64)
|
||||
|
||||
---> 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: 0x0600CD00 RID: 52480 RVA: 0x002EE56C File Offset: 0x002EC76C
|
||||
[Token(Token = "0x600CD00")]
|
||||
[Address(RVA = "0x1729250", Offset = "0x1728050", VA = "0x181729250", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD00)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.ReadOnlyBufferedStream::Write(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> 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: 0x0400826F RID: 33391
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400826F")]
|
||||
private Stream stream;
|
||||
|
||||
// Token: 0x04008270 RID: 33392
|
||||
[Token(Token = "0x4008270")]
|
||||
public const int READBUFFER = 8192;
|
||||
|
||||
// Token: 0x04008271 RID: 33393
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008271")]
|
||||
private byte[] buf;
|
||||
|
||||
// Token: 0x04008272 RID: 33394
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008272")]
|
||||
private int available;
|
||||
|
||||
// Token: 0x04008273 RID: 33395
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4008273")]
|
||||
private int pos;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,423 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using BestHTTP.Logger;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F9C RID: 8092
|
||||
[Token(Token = "0x2001F9C")]
|
||||
public static class VariableSizedBufferPool
|
||||
{
|
||||
// Token: 0x1700209A RID: 8346
|
||||
// (get) Token: 0x0600CD05 RID: 52485 RVA: 0x002EE614 File Offset: 0x002EC814
|
||||
// (set) Token: 0x0600CD06 RID: 52486 RVA: 0x002EE628 File Offset: 0x002EC828
|
||||
[Token(Token = "0x1700209A")]
|
||||
public static bool IsEnabled
|
||||
{
|
||||
[Token(Token = "0x600CD05")]
|
||||
[Address(RVA = "0x172BBE0", Offset = "0x172A9E0", VA = "0x18172BBE0")]
|
||||
get
|
||||
{
|
||||
return VariableSizedBufferPool._isEnabled;
|
||||
}
|
||||
[Token(Token = "0x600CD06")]
|
||||
[Address(RVA = "0x172BC50", Offset = "0x172AA50", VA = "0x18172BC50")]
|
||||
set
|
||||
{
|
||||
VariableSizedBufferPool._isEnabled = value;
|
||||
if (!VariableSizedBufferPool._isEnabled)
|
||||
{
|
||||
VariableSizedBufferPool.Clear();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD07 RID: 52487 RVA: 0x002EE64C File Offset: 0x002EC84C
|
||||
[Token(Token = "0x600CD07")]
|
||||
[Address(RVA = "0x172B9C0", Offset = "0x172A7C0", VA = "0x18172B9C0")]
|
||||
static VariableSizedBufferPool()
|
||||
{
|
||||
TimeSpan timeSpan;
|
||||
VariableSizedBufferPool.RemoveOlderThan = timeSpan;
|
||||
TimeSpan timeSpan2;
|
||||
VariableSizedBufferPool.RunMaintenanceEvery = timeSpan2;
|
||||
VariableSizedBufferPool.MaxBufferSize = (long)((ulong)long.MaxValue);
|
||||
VariableSizedBufferPool.FreeBuffers = new List();
|
||||
VariableSizedBufferPool.lastMaintenance = DateTime.MinValue;
|
||||
int num = 0;
|
||||
VariableSizedBufferPool.PoolSize = num;
|
||||
VariableSizedBufferPool.GetBuffers = (uint)num;
|
||||
VariableSizedBufferPool.ReleaseBuffers = (uint)num;
|
||||
VariableSizedBufferPool.statiscticsBuilder = new StringBuilder();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD08 RID: 52488 RVA: 0x002EE6B4 File Offset: 0x002EC8B4
|
||||
[Token(Token = "0x600CD08")]
|
||||
[Address(RVA = "0x172A980", Offset = "0x1729780", VA = "0x18172A980")]
|
||||
public static byte[] Get(long size, bool canBeLarger)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
if (!VariableSizedBufferPool._isEnabled)
|
||||
{
|
||||
break;
|
||||
}
|
||||
List<BufferStore> freeBuffers = VariableSizedBufferPool.FreeBuffers;
|
||||
Monitor.Enter(freeBuffers, canBeLarger);
|
||||
List<BufferStore> freeBuffers2 = VariableSizedBufferPool.FreeBuffers;
|
||||
List<BufferStore> freeBuffers3 = VariableSizedBufferPool.FreeBuffers;
|
||||
List<BufferStore> freeBuffers4 = VariableSizedBufferPool.FreeBuffers;
|
||||
int num2 = 0;
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
num += 2;
|
||||
num += num;
|
||||
if ((long)num2 == size || (canBeLarger && (long)num2 > size))
|
||||
{
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
}
|
||||
num++;
|
||||
int poolSize;
|
||||
if (num != 0)
|
||||
{
|
||||
VariableSizedBufferPool.GetBuffers += 1U;
|
||||
poolSize = VariableSizedBufferPool.PoolSize;
|
||||
VariableSizedBufferPool.PoolSize = poolSize;
|
||||
}
|
||||
if (canBeLarger)
|
||||
{
|
||||
int num3 = poolSize - 1;
|
||||
if (poolSize != num3)
|
||||
{
|
||||
uint num4;
|
||||
num4 += num4;
|
||||
while (num4 <= (uint)poolSize)
|
||||
{
|
||||
}
|
||||
byte[] array = new byte[VariableSizedBufferPool.MinBufferSize];
|
||||
byte[] array2 = new byte[size];
|
||||
Monitor.Exit(freeBuffers);
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return new byte[size];
|
||||
}
|
||||
|
||||
// Token: 0x0600CD09 RID: 52489 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600CD09")]
|
||||
[Address(RVA = "0x172B790", Offset = "0x172A590", VA = "0x18172B790")]
|
||||
public static void Release(List<byte[]> buffers)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0A RID: 52490 RVA: 0x002EE7A8 File Offset: 0x002EC9A8
|
||||
[Token(Token = "0x600CD0A")]
|
||||
[Address(RVA = "0x172B540", Offset = "0x172A340", VA = "0x18172B540")]
|
||||
public static void Release(byte[] buffer)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (!VariableSizedBufferPool._isEnabled || buffer == 0 || buffer.Length == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
List<BufferStore> freeBuffers = VariableSizedBufferPool.FreeBuffers;
|
||||
long maxPoolSize = VariableSizedBufferPool.MaxPoolSize;
|
||||
VariableSizedBufferPool.PoolSize = typeof(VariableSizedBufferPool).TypeHandle;
|
||||
VariableSizedBufferPool.ReleaseBuffers += 1U;
|
||||
VariableSizedBufferPool.AddFreeBuffer(buffer);
|
||||
Monitor.Exit(freeBuffers);
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0B RID: 52491 RVA: 0x002EE800 File Offset: 0x002ECA00
|
||||
[Token(Token = "0x600CD0B")]
|
||||
[Address(RVA = "0x172B870", Offset = "0x172A670", VA = "0x18172B870")]
|
||||
public static byte[] Resize(ref byte[] buffer, int newSize, bool canBeLarger)
|
||||
{
|
||||
if (VariableSizedBufferPool._isEnabled)
|
||||
{
|
||||
byte[] array = VariableSizedBufferPool.Get((long)newSize, canBeLarger);
|
||||
int num = Math.Min(array.Length, canBeLarger ? 1 : 0);
|
||||
buffer.m_value = array;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0C RID: 52492 RVA: 0x002EE838 File Offset: 0x002ECA38
|
||||
[Token(Token = "0x600CD0C")]
|
||||
[Address(RVA = "0x172A500", Offset = "0x1729300", VA = "0x18172A500")]
|
||||
public static string GetStatistics(bool showEmptyBuffers = true)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
List<BufferStore> freeBuffers = VariableSizedBufferPool.FreeBuffers;
|
||||
StringBuilder stringBuilder = VariableSizedBufferPool.statiscticsBuilder;
|
||||
int num2 = 0;
|
||||
stringBuilder.Length = num2;
|
||||
uint num3;
|
||||
StringBuilder stringBuilder2 = VariableSizedBufferPool.statiscticsBuilder.AppendFormat("Pooled array reused count: {0:N0}\n", num3);
|
||||
StringBuilder stringBuilder3 = VariableSizedBufferPool.statiscticsBuilder;
|
||||
StringBuilder stringBuilder4 = VariableSizedBufferPool.statiscticsBuilder;
|
||||
StringBuilder stringBuilder5 = VariableSizedBufferPool.statiscticsBuilder;
|
||||
int size = VariableSizedBufferPool.FreeBuffers._size;
|
||||
StringBuilder stringBuilder6 = stringBuilder5.AppendFormat("Buffers: {0}\n", size);
|
||||
List<BufferStore> freeBuffers2 = VariableSizedBufferPool.FreeBuffers;
|
||||
List<BufferStore> freeBuffers3 = VariableSizedBufferPool.FreeBuffers;
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
num += 2;
|
||||
num += num;
|
||||
if (!showEmptyBuffers)
|
||||
{
|
||||
}
|
||||
StringBuilder stringBuilder7 = VariableSizedBufferPool.statiscticsBuilder;
|
||||
num++;
|
||||
int hashCode = VariableSizedBufferPool.statiscticsBuilder.GetHashCode();
|
||||
Monitor.Exit(freeBuffers);
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0D RID: 52493 RVA: 0x002EE930 File Offset: 0x002ECB30
|
||||
[Token(Token = "0x600CD0D")]
|
||||
[Address(RVA = "0x172A1E0", Offset = "0x1728FE0", VA = "0x18172A1E0")]
|
||||
public static void Clear()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
List<BufferStore> freeBuffers = VariableSizedBufferPool.FreeBuffers;
|
||||
VariableSizedBufferPool.FreeBuffers.Clear();
|
||||
VariableSizedBufferPool.PoolSize = num;
|
||||
Monitor.Exit(freeBuffers);
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0E RID: 52494 RVA: 0x002EE968 File Offset: 0x002ECB68
|
||||
[Token(Token = "0x600CD0E")]
|
||||
[Address(RVA = "0x172AF00", Offset = "0x1729D00", VA = "0x18172AF00")]
|
||||
internal static void Maintain()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
if (!VariableSizedBufferPool._isEnabled)
|
||||
{
|
||||
break;
|
||||
}
|
||||
DateTime dateTime = VariableSizedBufferPool.lastMaintenance;
|
||||
TimeSpan runMaintenanceEvery = VariableSizedBufferPool.RunMaintenanceEvery;
|
||||
if (dateTime + runMaintenanceEvery > utcNow)
|
||||
{
|
||||
break;
|
||||
}
|
||||
VariableSizedBufferPool.lastMaintenance = utcNow;
|
||||
TimeSpan removeOlderThan = VariableSizedBufferPool.RemoveOlderThan;
|
||||
DateTime dateTime2 = utcNow - removeOlderThan;
|
||||
List<BufferStore> freeBuffers = VariableSizedBufferPool.FreeBuffers;
|
||||
if (HTTPManager.Logger == 0)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
ulong num2;
|
||||
string statistics = VariableSizedBufferPool.GetStatistics(num2 != 0UL);
|
||||
string text = "Before Maintain: " + statistics;
|
||||
}
|
||||
List<BufferStore> freeBuffers2 = VariableSizedBufferPool.FreeBuffers;
|
||||
List<BufferStore> list = VariableSizedBufferPool.FreeBuffers;
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
num += 2;
|
||||
num += num;
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
list += list;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
}
|
||||
int num3 = VariableSizedBufferPool.PoolSize;
|
||||
num3 -= typeof(VariableSizedBufferPool).TypeHandle;
|
||||
VariableSizedBufferPool.PoolSize = num3;
|
||||
if (!runMaintenanceEvery._legacyConfigChecked)
|
||||
{
|
||||
VariableSizedBufferPool.FreeBuffers.RemoveAt(num);
|
||||
}
|
||||
num++;
|
||||
if (HTTPManager.Logger == 0)
|
||||
{
|
||||
ILogger logger2 = HTTPManager.Logger;
|
||||
ulong num4;
|
||||
string statistics2 = VariableSizedBufferPool.GetStatistics(num4 != 0UL);
|
||||
string text2 = "After Maintain: " + statistics2;
|
||||
}
|
||||
Monitor.Exit(freeBuffers);
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0F RID: 52495 RVA: 0x002EEAC4 File Offset: 0x002ECCC4
|
||||
[Token(Token = "0x600CD0F")]
|
||||
[Address(RVA = "0x172AEF0", Offset = "0x1729CF0", VA = "0x18172AEF0")]
|
||||
private static bool IsPowerOfTwo(long x)
|
||||
{
|
||||
long num = x - 1L;
|
||||
return x == num;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD10 RID: 52496 RVA: 0x002EEADC File Offset: 0x002ECCDC
|
||||
[Token(Token = "0x600CD10")]
|
||||
[Address(RVA = "0x172B520", Offset = "0x172A320", VA = "0x18172B520")]
|
||||
private static long NextPowerOf2(long x)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD10)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Extensions.VariableSizedBufferPool::NextPowerOf2(System.Int64)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_04:
|
||||
brtrue(IL_04, cle:bool(ldloc:uint32[exp:int64](var_0), ldloc:int64(x)))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600CD11 RID: 52497 RVA: 0x002EEAF0 File Offset: 0x002ECCF0
|
||||
[Token(Token = "0x600CD11")]
|
||||
[Address(RVA = "0x172A310", Offset = "0x1729110", VA = "0x18172A310")]
|
||||
private static BufferDesc FindFreeBuffer(long size, bool canBeLarger)
|
||||
{
|
||||
int num = 0;
|
||||
List<BufferStore> freeBuffers = VariableSizedBufferPool.FreeBuffers;
|
||||
List<BufferStore> freeBuffers2 = VariableSizedBufferPool.FreeBuffers;
|
||||
int num2 = 0;
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
if (num2 != (canBeLarger ? 1 : 0))
|
||||
{
|
||||
num++;
|
||||
}
|
||||
int num3 = 0;
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
num3 += num3;
|
||||
size.m_value = 0L;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD12 RID: 52498 RVA: 0x002EEB38 File Offset: 0x002ECD38
|
||||
[Token(Token = "0x600CD12")]
|
||||
[Address(RVA = "0x1729E90", Offset = "0x1728C90", VA = "0x181729E90")]
|
||||
private static void AddFreeBuffer(byte[] buffer)
|
||||
{
|
||||
int length = buffer.Length;
|
||||
int num = 0;
|
||||
List<BufferStore> freeBuffers = VariableSizedBufferPool.FreeBuffers;
|
||||
List<BufferStore> freeBuffers2 = VariableSizedBufferPool.FreeBuffers;
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
if ("{il2cpp array field local7->}" != length)
|
||||
{
|
||||
num++;
|
||||
uint num2;
|
||||
num2 += (uint)16;
|
||||
int num3 = 0;
|
||||
VariableSizedBufferPool.FreeBuffers.Insert(num, num3);
|
||||
return;
|
||||
}
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException();
|
||||
if (typeof(VariableSizedBufferPool).TypeHandle != buffer)
|
||||
{
|
||||
}
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
int num4 = 0;
|
||||
VariableSizedBufferPool.FreeBuffers.Add(num4);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008279 RID: 33401
|
||||
[Token(Token = "0x4008279")]
|
||||
public static readonly byte[] NoData = new byte[0];
|
||||
|
||||
// Token: 0x0400827A RID: 33402
|
||||
[Token(Token = "0x400827A")]
|
||||
public static bool _isEnabled;
|
||||
|
||||
// Token: 0x0400827B RID: 33403
|
||||
[Token(Token = "0x400827B")]
|
||||
public static TimeSpan RemoveOlderThan;
|
||||
|
||||
// Token: 0x0400827C RID: 33404
|
||||
[Token(Token = "0x400827C")]
|
||||
public static TimeSpan RunMaintenanceEvery;
|
||||
|
||||
// Token: 0x0400827D RID: 33405
|
||||
[Token(Token = "0x400827D")]
|
||||
public static long MinBufferSize;
|
||||
|
||||
// Token: 0x0400827E RID: 33406
|
||||
[Token(Token = "0x400827E")]
|
||||
public static long MaxBufferSize;
|
||||
|
||||
// Token: 0x0400827F RID: 33407
|
||||
[Token(Token = "0x400827F")]
|
||||
public static long MaxPoolSize;
|
||||
|
||||
// Token: 0x04008280 RID: 33408
|
||||
[Token(Token = "0x4008280")]
|
||||
public static bool RemoveEmptyLists;
|
||||
|
||||
// Token: 0x04008281 RID: 33409
|
||||
[Token(Token = "0x4008281")]
|
||||
public static bool IsDoubleReleaseCheckEnabled;
|
||||
|
||||
// Token: 0x04008282 RID: 33410
|
||||
[Token(Token = "0x4008282")]
|
||||
private static List<BufferStore> FreeBuffers;
|
||||
|
||||
// Token: 0x04008283 RID: 33411
|
||||
[Token(Token = "0x4008283")]
|
||||
private static DateTime lastMaintenance;
|
||||
|
||||
// Token: 0x04008284 RID: 33412
|
||||
[Token(Token = "0x4008284")]
|
||||
private static int PoolSize;
|
||||
|
||||
// Token: 0x04008285 RID: 33413
|
||||
[Token(Token = "0x4008285")]
|
||||
private static uint GetBuffers;
|
||||
|
||||
// Token: 0x04008286 RID: 33414
|
||||
[Token(Token = "0x4008286")]
|
||||
private static uint ReleaseBuffers;
|
||||
|
||||
// Token: 0x04008287 RID: 33415
|
||||
[Token(Token = "0x4008287")]
|
||||
private static StringBuilder statiscticsBuilder;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F9D RID: 8093
|
||||
[Token(Token = "0x2001F9D")]
|
||||
public sealed class WWWAuthenticateHeaderParser : KeyValuePairList
|
||||
{
|
||||
// Token: 0x0600CD13 RID: 52499 RVA: 0x002EEBB8 File Offset: 0x002ECDB8
|
||||
[Token(Token = "0x600CD13")]
|
||||
[Address(RVA = "0x172BF40", Offset = "0x172AD40", VA = "0x18172BF40")]
|
||||
public WWWAuthenticateHeaderParser(string headerValue)
|
||||
{
|
||||
List<HeaderValue> list = this.ParseQuotedHeader(headerValue);
|
||||
this.<Values>k__BackingField = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD14 RID: 52500 RVA: 0x002EEBDC File Offset: 0x002ECDDC
|
||||
[Token(Token = "0x600CD14")]
|
||||
[Address(RVA = "0x172BD00", Offset = "0x172AB00", VA = "0x18172BD00")]
|
||||
private List<HeaderValue> ParseQuotedHeader(string str)
|
||||
{
|
||||
List<HeaderValue> list = new List();
|
||||
if (str != 0)
|
||||
{
|
||||
int num = 0;
|
||||
Func<char, bool> <>9__1_ = WWWAuthenticateHeaderParser.<>c.<>9__1_0;
|
||||
if (<>9__1_ == 0)
|
||||
{
|
||||
WWWAuthenticateHeaderParser.<>c.<>9__1_0 = delegate(char ch)
|
||||
{
|
||||
if (char.IsWhiteSpace(ch))
|
||||
{
|
||||
}
|
||||
return !char.IsControl(ch);
|
||||
};
|
||||
}
|
||||
string text = Extensions.Read(str, num, <>9__1_, true).TrimAndLower();
|
||||
list.Add(new HeaderValue
|
||||
{
|
||||
<Key>k__BackingField = text
|
||||
});
|
||||
int stringLength = str.m_stringLength;
|
||||
string text3;
|
||||
string text2 = text3.TrimAndLower();
|
||||
HeaderValue headerValue = new HeaderValue();
|
||||
headerValue.<Key>k__BackingField = text2;
|
||||
str.SkipWhiteSpace(num);
|
||||
string text4 = str.ReadPossibleQuotedText(num);
|
||||
headerValue.<Value>k__BackingField = text4;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.Logger;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02001F9F RID: 8095
|
||||
[Token(Token = "0x2001F9F")]
|
||||
public sealed class WriteOnlyBufferedStream : Stream
|
||||
{
|
||||
// Token: 0x1700209B RID: 8347
|
||||
// (get) Token: 0x0600CD18 RID: 52504 RVA: 0x002EECD0 File Offset: 0x002ECED0
|
||||
[Token(Token = "0x1700209B")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600CD18")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "7")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700209C RID: 8348
|
||||
// (get) Token: 0x0600CD19 RID: 52505 RVA: 0x002EECE0 File Offset: 0x002ECEE0
|
||||
[Token(Token = "0x1700209C")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600CD19")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700209D RID: 8349
|
||||
// (get) Token: 0x0600CD1A RID: 52506 RVA: 0x002EECF0 File Offset: 0x002ECEF0
|
||||
[Token(Token = "0x1700209D")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600CD1A")]
|
||||
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700209E RID: 8350
|
||||
// (get) Token: 0x0600CD1B RID: 52507 RVA: 0x002EED00 File Offset: 0x002ECF00
|
||||
[Token(Token = "0x1700209E")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600CD1B")]
|
||||
[Address(RVA = "0x172C300", Offset = "0x172B100", VA = "0x18172C300", Slot = "10")]
|
||||
get
|
||||
{
|
||||
int length = this.buffer.Length;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700209F RID: 8351
|
||||
// (get) Token: 0x0600CD1C RID: 52508 RVA: 0x002EED20 File Offset: 0x002ECF20
|
||||
// (set) Token: 0x0600CD1D RID: 52509 RVA: 0x002EED34 File Offset: 0x002ECF34
|
||||
[Token(Token = "0x1700209F")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600CD1C")]
|
||||
[Address(RVA = "0x172C320", Offset = "0x172B120", VA = "0x18172C320", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD1C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Extensions.WriteOnlyBufferedStream::get_Position()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:int32(var_0_06, ldfld:int32(WriteOnlyBufferedStream::_position, ldloc:WriteOnlyBufferedStream(this)))
|
||||
}
|
||||
|
||||
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(Token = "0x600CD1D")]
|
||||
[Address(RVA = "0x172C330", Offset = "0x172B130", VA = "0x18172C330", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD1D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Extensions.WriteOnlyBufferedStream::set_Position(System.Int64)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotImplementedException(var_0_0A, newobj:NotImplementedException(NotImplementedException::.ctor, ldstr:string("Position set")))
|
||||
}
|
||||
|
||||
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: 0x0600CD1E RID: 52510 RVA: 0x002EED4C File Offset: 0x002ECF4C
|
||||
[Token(Token = "0x600CD1E")]
|
||||
[Address(RVA = "0x172C250", Offset = "0x172B050", VA = "0x18172C250")]
|
||||
public WriteOnlyBufferedStream(Stream stream, int bufferSize)
|
||||
{
|
||||
this.stream = stream;
|
||||
byte[] array = VariableSizedBufferPool.Get((long)bufferSize, true);
|
||||
this.buffer = array;
|
||||
this._position = (int)((ulong)0L);
|
||||
}
|
||||
|
||||
// Token: 0x0600CD1F RID: 52511 RVA: 0x002EED80 File Offset: 0x002ECF80
|
||||
[Token(Token = "0x600CD1F")]
|
||||
[Address(RVA = "0x172C000", Offset = "0x172AE00", VA = "0x18172C000", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
if (this._position > 0)
|
||||
{
|
||||
if (HTTPManager.Logger == 0)
|
||||
{
|
||||
ILogger logger = HTTPManager.Logger;
|
||||
int position = this._position;
|
||||
}
|
||||
int num = this.stream.ReadByte();
|
||||
this._position = (int)((ulong)0L);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD20 RID: 52512 RVA: 0x002EEDCC File Offset: 0x002ECFCC
|
||||
[Token(Token = "0x600CD20")]
|
||||
[Address(RVA = "0x172C140", Offset = "0x172AF40", VA = "0x18172C140", Slot = "29")]
|
||||
public override void Write(byte[] bufferFrom, int offset, int count)
|
||||
{
|
||||
if (count > 0)
|
||||
{
|
||||
byte[] array = this.buffer;
|
||||
int position = this._position;
|
||||
int num = array.Length;
|
||||
num -= position;
|
||||
int num2 = Math.Min(count, num);
|
||||
int position2 = this._position;
|
||||
byte[] array2 = this.buffer;
|
||||
Array.Copy(bufferFrom, offset, array2, position2, num2);
|
||||
int num3 = this._position;
|
||||
byte[] array3 = this.buffer;
|
||||
num3 += num2;
|
||||
this._position = num3;
|
||||
if (num3 == array3.Length)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD21 RID: 52513 RVA: 0x002EEE50 File Offset: 0x002ED050
|
||||
[Token(Token = "0x600CD21")]
|
||||
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD22 RID: 52514 RVA: 0x002EEE60 File Offset: 0x002ED060
|
||||
[Token(Token = "0x600CD22")]
|
||||
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CD23 RID: 52515 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600CD23")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600CD24 RID: 52516 RVA: 0x002EEE70 File Offset: 0x002ED070
|
||||
[Token(Token = "0x600CD24")]
|
||||
[Address(RVA = "0x172BF80", Offset = "0x172AD80", VA = "0x18172BF80", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
this.SetLength(disposing ? 1L : 0L);
|
||||
byte[] array = this.buffer;
|
||||
if (array != 0)
|
||||
{
|
||||
VariableSizedBufferPool.Release(array);
|
||||
}
|
||||
this.buffer = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0400828A RID: 33418
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400828A")]
|
||||
private int _position;
|
||||
|
||||
// Token: 0x0400828B RID: 33419
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400828B")]
|
||||
private byte[] buffer;
|
||||
|
||||
// Token: 0x0400828C RID: 33420
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400828C")]
|
||||
private Stream stream;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user