m
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x0200207B RID: 8315
|
||||
[Token(Token = "0x200207B")]
|
||||
internal struct BufferDesc
|
||||
{
|
||||
// Token: 0x0600D0D1 RID: 53457 RVA: 0x002F6D2C File Offset: 0x002F4F2C
|
||||
[Token(Token = "0x600D0D1")]
|
||||
[Address(RVA = "0x2A6C830", Offset = "0x2A6B830", VA = "0x182A6C830")]
|
||||
public BufferDesc(byte[] buff)
|
||||
{
|
||||
this.buffer = buff;
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
this.released = utcNow;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0D2 RID: 53458 RVA: 0x002F6D50 File Offset: 0x002F4F50
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D0D2")]
|
||||
[Address(RVA = "0x2A6C7A0", Offset = "0x2A6B7A0", VA = "0x182A6C7A0")]
|
||||
static BufferDesc()
|
||||
{
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
ulong num;
|
||||
BufferDesc.Empty = num;
|
||||
}
|
||||
|
||||
// Token: 0x0400842F RID: 33839
|
||||
[Token(Token = "0x400842F")]
|
||||
public static readonly BufferDesc Empty;
|
||||
|
||||
// Token: 0x04008430 RID: 33840
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4008430")]
|
||||
public byte[] buffer;
|
||||
|
||||
// Token: 0x04008431 RID: 33841
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4008431")]
|
||||
public DateTime released;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,738 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x0200206D RID: 8301
|
||||
[Token(Token = "0x200206D")]
|
||||
public sealed class BufferPoolMemoryStream : Stream
|
||||
{
|
||||
// Token: 0x0600D054 RID: 53332 RVA: 0x002F5654 File Offset: 0x002F3854
|
||||
[Token(Token = "0x600D054")]
|
||||
[Address(RVA = "0x2A6DB60", Offset = "0x2A6CB60", VA = "0x182A6DB60")]
|
||||
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: 0x0600D055 RID: 53333 RVA: 0x002F56A0 File Offset: 0x002F38A0
|
||||
[Token(Token = "0x600D055")]
|
||||
[Address(RVA = "0x2A6D990", Offset = "0x2A6C990", VA = "0x182A6D990")]
|
||||
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: 0x0600D056 RID: 53334 RVA: 0x002F56FC File Offset: 0x002F38FC
|
||||
[Token(Token = "0x600D056")]
|
||||
[Address(RVA = "0x2A6DC10", Offset = "0x2A6CC10", VA = "0x182A6DC10")]
|
||||
public BufferPoolMemoryStream(byte[] buffer)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D056)
|
||||
|
||||
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: 0x0600D057 RID: 53335 RVA: 0x002F5734 File Offset: 0x002F3934
|
||||
[Token(Token = "0x600D057")]
|
||||
[Address(RVA = "0x2A6D8C0", Offset = "0x2A6C8C0", VA = "0x182A6D8C0")]
|
||||
public BufferPoolMemoryStream(byte[] buffer, bool writable)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D057)
|
||||
|
||||
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: 0x0600D058 RID: 53336 RVA: 0x002F576C File Offset: 0x002F396C
|
||||
[Token(Token = "0x600D058")]
|
||||
[Address(RVA = "0x2A6D820", Offset = "0x2A6C820", VA = "0x182A6D820")]
|
||||
public BufferPoolMemoryStream(byte[] buffer, int index, int count)
|
||||
{
|
||||
ulong num;
|
||||
ulong num2;
|
||||
this.InternalConstructor(buffer, index, count, num != 0UL, num2 != 0UL);
|
||||
}
|
||||
|
||||
// Token: 0x0600D059 RID: 53337 RVA: 0x002F578C File Offset: 0x002F398C
|
||||
[Token(Token = "0x600D059")]
|
||||
[Address(RVA = "0x2A6DCD0", Offset = "0x2A6CCD0", VA = "0x182A6DCD0")]
|
||||
public BufferPoolMemoryStream(byte[] buffer, int index, int count, bool writable)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D05A RID: 53338 RVA: 0x002F57A0 File Offset: 0x002F39A0
|
||||
[Token(Token = "0x600D05A")]
|
||||
[Address(RVA = "0x2A6DAB0", Offset = "0x2A6CAB0", VA = "0x182A6DAB0")]
|
||||
public BufferPoolMemoryStream(byte[] buffer, int index, int count, bool writable, bool publiclyVisible)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D05B RID: 53339 RVA: 0x002F57B4 File Offset: 0x002F39B4
|
||||
[Token(Token = "0x600D05B")]
|
||||
[Address(RVA = "0x2A6CB90", Offset = "0x2A6BB90", VA = "0x182A6CB90")]
|
||||
private void InternalConstructor(byte[] buffer, int index, int count, bool writable, bool publicallyVisible)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D05B)
|
||||
|
||||
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: 0x0600D05C RID: 53340 RVA: 0x002F5814 File Offset: 0x002F3A14
|
||||
[Token(Token = "0x600D05C")]
|
||||
[Address(RVA = "0x2A6C950", Offset = "0x2A6B950", VA = "0x182A6C950")]
|
||||
private void CheckIfClosedThrowDisposed()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D05C)
|
||||
|
||||
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: 0x17002123 RID: 8483
|
||||
// (get) Token: 0x0600D05D RID: 53341 RVA: 0x002F5838 File Offset: 0x002F3A38
|
||||
[Token(Token = "0x17002123")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600D05D")]
|
||||
[Address(RVA = "0x2A6DD70", Offset = "0x2A6CD70", VA = "0x182A6DD70", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return !this.streamClosed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002124 RID: 8484
|
||||
// (get) Token: 0x0600D05E RID: 53342 RVA: 0x002F5850 File Offset: 0x002F3A50
|
||||
[Token(Token = "0x17002124")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600D05E")]
|
||||
[Address(RVA = "0x2A6DD70", Offset = "0x2A6CD70", VA = "0x182A6DD70", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return !this.streamClosed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002125 RID: 8485
|
||||
// (get) Token: 0x0600D05F RID: 53343 RVA: 0x002F5868 File Offset: 0x002F3A68
|
||||
[Token(Token = "0x17002125")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600D05F")]
|
||||
[Address(RVA = "0x2A6DD80", Offset = "0x2A6CD80", VA = "0x182A6DD80", Slot = "9")]
|
||||
get
|
||||
{
|
||||
if (this.streamClosed)
|
||||
{
|
||||
}
|
||||
return this.canWrite;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002126 RID: 8486
|
||||
// (get) Token: 0x0600D060 RID: 53344 RVA: 0x002F5888 File Offset: 0x002F3A88
|
||||
// (set) Token: 0x0600D061 RID: 53345 RVA: 0x002F58B0 File Offset: 0x002F3AB0
|
||||
[Token(Token = "0x17002126")]
|
||||
public int Capacity
|
||||
{
|
||||
[Token(Token = "0x600D060")]
|
||||
[Address(RVA = "0x2A6DD90", Offset = "0x2A6CD90", VA = "0x182A6DD90")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D060)
|
||||
|
||||
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 = "0x600D061")]
|
||||
[Address(RVA = "0x2A6DEE0", Offset = "0x2A6CEE0", VA = "0x182A6DEE0")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D061)
|
||||
|
||||
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: 0x17002127 RID: 8487
|
||||
// (get) Token: 0x0600D062 RID: 53346 RVA: 0x002F5938 File Offset: 0x002F3B38
|
||||
[Token(Token = "0x17002127")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600D062")]
|
||||
[Address(RVA = "0x2A6DE00", Offset = "0x2A6CE00", VA = "0x182A6DE00", Slot = "10")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D062)
|
||||
|
||||
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: 0x17002128 RID: 8488
|
||||
// (get) Token: 0x0600D063 RID: 53347 RVA: 0x002F5960 File Offset: 0x002F3B60
|
||||
// (set) Token: 0x0600D064 RID: 53348 RVA: 0x002F5988 File Offset: 0x002F3B88
|
||||
[Token(Token = "0x17002128")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600D063")]
|
||||
[Address(RVA = "0x2A6DE70", Offset = "0x2A6CE70", VA = "0x182A6DE70", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D063)
|
||||
|
||||
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 = "0x600D064")]
|
||||
[Address(RVA = "0x2A6E190", Offset = "0x2A6D190", VA = "0x182A6E190", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D064)
|
||||
|
||||
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: 0x0600D065 RID: 53349 RVA: 0x002F59BC File Offset: 0x002F3BBC
|
||||
[Token(Token = "0x600D065")]
|
||||
[Address(RVA = "0x2A6C9C0", Offset = "0x2A6B9C0", VA = "0x182A6C9C0", 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: 0x0600D066 RID: 53350 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600D066")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600D067 RID: 53351 RVA: 0x002F59EC File Offset: 0x002F3BEC
|
||||
[Token(Token = "0x600D067")]
|
||||
[Address(RVA = "0x2A6CB30", Offset = "0x2A6BB30", VA = "0x182A6CB30")]
|
||||
public byte[] GetBuffer()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D067)
|
||||
|
||||
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: 0x0600D068 RID: 53352 RVA: 0x002F5A10 File Offset: 0x002F3C10
|
||||
[Token(Token = "0x600D068")]
|
||||
[Address(RVA = "0x2A6CD70", Offset = "0x2A6BD70", VA = "0x182A6CD70", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D068)
|
||||
|
||||
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: 0x0600D069 RID: 53353 RVA: 0x002F5A74 File Offset: 0x002F3C74
|
||||
[Token(Token = "0x600D069")]
|
||||
[Address(RVA = "0x2A6CCC0", Offset = "0x2A6BCC0", VA = "0x182A6CCC0", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D069)
|
||||
|
||||
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: 0x0600D06A RID: 53354 RVA: 0x002F5ABC File Offset: 0x002F3CBC
|
||||
[Token(Token = "0x600D06A")]
|
||||
[Address(RVA = "0x2A6CF20", Offset = "0x2A6BF20", VA = "0x182A6CF20", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin loc)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D06A)
|
||||
|
||||
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: 0x0600D06B RID: 53355 RVA: 0x002F5B0C File Offset: 0x002F3D0C
|
||||
[Token(Token = "0x600D06B")]
|
||||
[Address(RVA = "0x2A6C8A0", Offset = "0x2A6B8A0", VA = "0x182A6C8A0")]
|
||||
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: 0x0600D06C RID: 53356 RVA: 0x002F5B3C File Offset: 0x002F3D3C
|
||||
[Token(Token = "0x600D06C")]
|
||||
[Address(RVA = "0x2A6CA40", Offset = "0x2A6BA40", VA = "0x182A6CA40")]
|
||||
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: 0x0600D06D RID: 53357 RVA: 0x002F5B84 File Offset: 0x002F3D84
|
||||
[Token(Token = "0x600D06D")]
|
||||
[Address(RVA = "0x2A6D0F0", Offset = "0x2A6C0F0", VA = "0x182A6D0F0", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D06D)
|
||||
|
||||
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: 0x0600D06E RID: 53358 RVA: 0x002F5BF4 File Offset: 0x002F3DF4
|
||||
[Token(Token = "0x600D06E")]
|
||||
[Address(RVA = "0x2A6D350", Offset = "0x2A6C350", VA = "0x182A6D350")]
|
||||
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: 0x0600D06F RID: 53359 RVA: 0x002F5C44 File Offset: 0x002F3E44
|
||||
[Token(Token = "0x600D06F")]
|
||||
[Address(RVA = "0x2A6D270", Offset = "0x2A6C270", VA = "0x182A6D270")]
|
||||
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: 0x0600D070 RID: 53360 RVA: 0x002F5C90 File Offset: 0x002F3E90
|
||||
[Token(Token = "0x600D070")]
|
||||
[Address(RVA = "0x2A6D630", Offset = "0x2A6C630", VA = "0x182A6D630", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D070)
|
||||
|
||||
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: 0x0600D071 RID: 53361 RVA: 0x002F5D04 File Offset: 0x002F3F04
|
||||
[Token(Token = "0x600D071")]
|
||||
[Address(RVA = "0x2A6D420", Offset = "0x2A6C420", VA = "0x182A6D420", Slot = "30")]
|
||||
public override void WriteByte(byte value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D071)
|
||||
|
||||
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: 0x0600D072 RID: 53362 RVA: 0x002F5D74 File Offset: 0x002F3F74
|
||||
[Token(Token = "0x600D072")]
|
||||
[Address(RVA = "0x2A6D540", Offset = "0x2A6C540", VA = "0x182A6D540")]
|
||||
public void WriteTo(Stream stream)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D072)
|
||||
|
||||
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: 0x04008409 RID: 33801
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008409")]
|
||||
private bool canWrite;
|
||||
|
||||
// Token: 0x0400840A RID: 33802
|
||||
[FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x400840A")]
|
||||
private bool allowGetBuffer;
|
||||
|
||||
// Token: 0x0400840B RID: 33803
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x400840B")]
|
||||
private int capacity;
|
||||
|
||||
// Token: 0x0400840C RID: 33804
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400840C")]
|
||||
private int length;
|
||||
|
||||
// Token: 0x0400840D RID: 33805
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400840D")]
|
||||
private byte[] internalBuffer;
|
||||
|
||||
// Token: 0x0400840E RID: 33806
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400840E")]
|
||||
private int initialIndex;
|
||||
|
||||
// Token: 0x0400840F RID: 33807
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x400840F")]
|
||||
private bool expandable;
|
||||
|
||||
// Token: 0x04008410 RID: 33808
|
||||
[FieldOffset(Offset = "0x45")]
|
||||
[Token(Token = "0x4008410")]
|
||||
private bool streamClosed;
|
||||
|
||||
// Token: 0x04008411 RID: 33809
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4008411")]
|
||||
private int position;
|
||||
|
||||
// Token: 0x04008412 RID: 33810
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4008412")]
|
||||
private int dirty_bytes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x0200207A RID: 8314
|
||||
[Token(Token = "0x200207A")]
|
||||
internal struct BufferStore
|
||||
{
|
||||
// Token: 0x0600D0CF RID: 53455 RVA: 0x002F6CD8 File Offset: 0x002F4ED8
|
||||
[Token(Token = "0x600D0CF")]
|
||||
[Address(RVA = "0x2A6E3B0", Offset = "0x2A6D3B0", VA = "0x182A6E3B0")]
|
||||
public BufferStore(long size)
|
||||
{
|
||||
this.Size = size;
|
||||
List<BufferDesc> list = new List();
|
||||
this.buffers = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0D0 RID: 53456 RVA: 0x002F6CFC File Offset: 0x002F4EFC
|
||||
[Token(Token = "0x600D0D0")]
|
||||
[Address(RVA = "0x2A6E2B0", Offset = "0x2A6D2B0", VA = "0x182A6E2B0")]
|
||||
public BufferStore(long size, byte[] buffer)
|
||||
{
|
||||
this.Size = size;
|
||||
List<BufferDesc> list = new List();
|
||||
this.buffers = list;
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
// Token: 0x0400842D RID: 33837
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400842D")]
|
||||
public readonly long Size;
|
||||
|
||||
// Token: 0x0400842E RID: 33838
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x400842E")]
|
||||
public List<BufferDesc> buffers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x0200206E RID: 8302
|
||||
[Token(Token = "0x200206E")]
|
||||
public sealed class CircularBuffer<T>
|
||||
{
|
||||
// Token: 0x17002129 RID: 8489
|
||||
// (get) Token: 0x0600D073 RID: 53363 RVA: 0x002F5DC0 File Offset: 0x002F3FC0
|
||||
// (set) Token: 0x0600D074 RID: 53364 RVA: 0x002F5DD4 File Offset: 0x002F3FD4
|
||||
[Token(Token = "0x17002129")]
|
||||
public int Capacity
|
||||
{
|
||||
[Token(Token = "0x600D073")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
||||
get;
|
||||
[Token(Token = "0x600D074")]
|
||||
[Address(RVA = "0x470D10", Offset = "0x46FD10", VA = "0x180470D10")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x1700212A RID: 8490
|
||||
// (get) Token: 0x0600D075 RID: 53365 RVA: 0x002F5DE8 File Offset: 0x002F3FE8
|
||||
// (set) Token: 0x0600D076 RID: 53366 RVA: 0x002F5DFC File Offset: 0x002F3FFC
|
||||
[Token(Token = "0x1700212A")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600D075")]
|
||||
[Address(RVA = "0x4936D0", Offset = "0x4926D0", VA = "0x1804936D0")]
|
||||
get;
|
||||
[Token(Token = "0x600D076")]
|
||||
[Address(RVA = "0x5F1920", Offset = "0x5F0920", VA = "0x1805F1920")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x1700212B RID: 8491
|
||||
[Token(Token = "0x1700212B")]
|
||||
public T this[int idx]
|
||||
{
|
||||
[Token(Token = "0x600D077")]
|
||||
[Address(RVA = "0x2DA70D0", Offset = "0x2DA60D0", VA = "0x182DA70D0")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
[Token(Token = "0x600D078")]
|
||||
[Address(RVA = "0x2DA7240", Offset = "0x2DA6240", VA = "0x182DA7240")]
|
||||
set
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D079 RID: 53369 RVA: 0x002F5E10 File Offset: 0x002F4010
|
||||
[Token(Token = "0x600D079")]
|
||||
[Address(RVA = "0x2DA7070", Offset = "0x2DA6070", VA = "0x182DA7070")]
|
||||
public CircularBuffer(int capacity)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D07A RID: 53370 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600D07A")]
|
||||
[Address(RVA = "0x2DA6D20", Offset = "0x2DA5D20", VA = "0x182DA6D20")]
|
||||
public void Add(T element)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600D07B RID: 53371 RVA: 0x002F5E2C File Offset: 0x002F402C
|
||||
[Token(Token = "0x600D07B")]
|
||||
[Address(RVA = "0x2DA7060", Offset = "0x2DA6060", VA = "0x182DA7060")]
|
||||
public void Clear()
|
||||
{
|
||||
int num = 0;
|
||||
this.startIdx = num;
|
||||
}
|
||||
|
||||
// Token: 0x04008415 RID: 33813
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4008415")]
|
||||
private T[] buffer;
|
||||
|
||||
// Token: 0x04008416 RID: 33814
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4008416")]
|
||||
private int startIdx;
|
||||
|
||||
// Token: 0x04008417 RID: 33815
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4008417")]
|
||||
private int endIdx;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02002072 RID: 8306
|
||||
[Token(Token = "0x2002072")]
|
||||
public static class ExceptionHelper
|
||||
{
|
||||
// Token: 0x0600D0A3 RID: 53411 RVA: 0x002F65FC File Offset: 0x002F47FC
|
||||
[Token(Token = "0x600D0A3")]
|
||||
[Address(RVA = "0x2A6E410", Offset = "0x2A6D410", VA = "0x182A6E410")]
|
||||
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: 0x0200206F RID: 8303
|
||||
[Token(Token = "0x200206F")]
|
||||
public static class Extensions
|
||||
{
|
||||
// Token: 0x0600D07C RID: 53372 RVA: 0x002F5E44 File Offset: 0x002F4044
|
||||
[Token(Token = "0x600D07C")]
|
||||
[Address(RVA = "0x2A6E460", Offset = "0x2A6D460", VA = "0x182A6E460")]
|
||||
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: 0x0600D07D RID: 53373 RVA: 0x002F5E80 File Offset: 0x002F4080
|
||||
[Token(Token = "0x600D07D")]
|
||||
[Address(RVA = "0x2A6E910", Offset = "0x2A6D910", VA = "0x182A6E910")]
|
||||
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: 0x0600D07E RID: 53374 RVA: 0x002F5EC0 File Offset: 0x002F40C0
|
||||
[Token(Token = "0x600D07E")]
|
||||
[Address(RVA = "0x2A6F780", Offset = "0x2A6E780", VA = "0x182A6F780")]
|
||||
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: 0x0600D07F RID: 53375 RVA: 0x002F5EF4 File Offset: 0x002F40F4
|
||||
[Token(Token = "0x600D07F")]
|
||||
[Address(RVA = "0x2A6FCD0", Offset = "0x2A6ECD0", VA = "0x182A6FCD0")]
|
||||
public static void WriteLine(this Stream fs)
|
||||
{
|
||||
int num = fs.ReadByte();
|
||||
}
|
||||
|
||||
// Token: 0x0600D080 RID: 53376 RVA: 0x002F5F10 File Offset: 0x002F4110
|
||||
[Token(Token = "0x600D080")]
|
||||
[Address(RVA = "0x2A6FE50", Offset = "0x2A6EE50", VA = "0x182A6FE50")]
|
||||
public static void WriteLine(this Stream fs, string line)
|
||||
{
|
||||
byte[] asciibytes = line.GetASCIIBytes();
|
||||
int num = fs.ReadByte();
|
||||
fs.WriteLine();
|
||||
VariableSizedBufferPool.Release(asciibytes);
|
||||
}
|
||||
|
||||
// Token: 0x0600D081 RID: 53377 RVA: 0x002F5F40 File Offset: 0x002F4140
|
||||
[Token(Token = "0x600D081")]
|
||||
[Address(RVA = "0x2A6FD60", Offset = "0x2A6ED60", VA = "0x182A6FD60")]
|
||||
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: 0x0600D082 RID: 53378 RVA: 0x002F5F74 File Offset: 0x002F4174
|
||||
[Token(Token = "0x600D082")]
|
||||
[Address(RVA = "0x2A6E9F0", Offset = "0x2A6D9F0", VA = "0x182A6E9F0")]
|
||||
public static string GetRequestPathAndQueryURL(this Uri uri)
|
||||
{
|
||||
string parts = uri.GetParts(UriComponents.PathAndQuery, UriFormat.UriEscaped);
|
||||
return "/";
|
||||
}
|
||||
|
||||
// Token: 0x0600D083 RID: 53379 RVA: 0x002F5F98 File Offset: 0x002F4198
|
||||
[Token(Token = "0x600D083")]
|
||||
[Address(RVA = "0x2A6E770", Offset = "0x2A6D770", VA = "0x182A6E770")]
|
||||
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: 0x0600D084 RID: 53380 RVA: 0x002F601C File Offset: 0x002F421C
|
||||
[Token(Token = "0x600D084")]
|
||||
[Address(RVA = "0x1156660", Offset = "0x1155660", VA = "0x181156660")]
|
||||
public static void WriteArray(this Stream stream, byte[] array)
|
||||
{
|
||||
int num = stream.ReadByte();
|
||||
}
|
||||
|
||||
// Token: 0x0600D085 RID: 53381 RVA: 0x002F6038 File Offset: 0x002F4238
|
||||
[Token(Token = "0x600D085")]
|
||||
[Address(RVA = "0x2A6EA60", Offset = "0x2A6DA60", VA = "0x182A6EA60")]
|
||||
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: 0x0600D086 RID: 53382 RVA: 0x002F6090 File Offset: 0x002F4290
|
||||
[Token(Token = "0x600D086")]
|
||||
[Address(RVA = "0x2A6EC70", Offset = "0x2A6DC70", VA = "0x182A6EC70")]
|
||||
public static bool IsIpV4AddressValid(string address)
|
||||
{
|
||||
if (string.IsNullOrEmpty(address))
|
||||
{
|
||||
}
|
||||
string text = address.Trim();
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x0600D087 RID: 53383 RVA: 0x002F60B8 File Offset: 0x002F42B8
|
||||
[Token(Token = "0x600D087")]
|
||||
[Address(RVA = "0x2A6ED20", Offset = "0x2A6DD20", VA = "0x182A6ED20")]
|
||||
public static bool IsIpV6AddressValid(string address)
|
||||
{
|
||||
bool flag;
|
||||
if (!string.IsNullOrEmpty(address) && flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600D088 RID: 53384 RVA: 0x002F60DC File Offset: 0x002F42DC
|
||||
[Token(Token = "0x600D088")]
|
||||
[Address(RVA = "0x2A6F960", Offset = "0x2A6E960", VA = "0x182A6F960")]
|
||||
public static int ToInt32(this string str, int defaultValue = 0)
|
||||
{
|
||||
if (str != 0)
|
||||
{
|
||||
return int.Parse(str);
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600D089 RID: 53385 RVA: 0x002F60F8 File Offset: 0x002F42F8
|
||||
[Token(Token = "0x600D089")]
|
||||
[Address(RVA = "0x2A6F9E0", Offset = "0x2A6E9E0", VA = "0x182A6F9E0")]
|
||||
public static long ToInt64(this string str, long defaultValue = 0L)
|
||||
{
|
||||
if (str != 0)
|
||||
{
|
||||
return long.Parse(str);
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600D08A RID: 53386 RVA: 0x002F6114 File Offset: 0x002F4314
|
||||
[Token(Token = "0x600D08A")]
|
||||
[Address(RVA = "0x2A6F8B0", Offset = "0x2A6E8B0", VA = "0x182A6F8B0")]
|
||||
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: 0x0600D08B RID: 53387 RVA: 0x002F6130 File Offset: 0x002F4330
|
||||
[Token(Token = "0x600D08B")]
|
||||
[Address(RVA = "0x2A6FA60", Offset = "0x2A6EA60", VA = "0x182A6FA60")]
|
||||
public static string ToStrOrEmpty(this string str)
|
||||
{
|
||||
if (str != 0)
|
||||
{
|
||||
return str;
|
||||
}
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
// Token: 0x0600D08C RID: 53388 RVA: 0x002F6148 File Offset: 0x002F4348
|
||||
[Token(Token = "0x600D08C")]
|
||||
[Address(RVA = "0x2A6E6D0", Offset = "0x2A6D6D0", VA = "0x182A6E6D0")]
|
||||
public static string CalculateMD5Hash(this string input)
|
||||
{
|
||||
byte[] asciibytes = input.GetASCIIBytes();
|
||||
string text = asciibytes.CalculateMD5Hash();
|
||||
VariableSizedBufferPool.Release(asciibytes);
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0600D08D RID: 53389 RVA: 0x002F616C File Offset: 0x002F436C
|
||||
[Token(Token = "0x600D08D")]
|
||||
[Address(RVA = "0x2A6E530", Offset = "0x2A6D530", VA = "0x182A6E530")]
|
||||
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: 0x0600D08E RID: 53390 RVA: 0x002F61F4 File Offset: 0x002F43F4
|
||||
[Token(Token = "0x600D08E")]
|
||||
[Address(RVA = "0x2A6F690", Offset = "0x2A6E690", VA = "0x182A6F690")]
|
||||
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: 0x0600D08F RID: 53391 RVA: 0x002F622C File Offset: 0x002F442C
|
||||
[Token(Token = "0x600D08F")]
|
||||
[Address(RVA = "0x2A6F580", Offset = "0x2A6E580", VA = "0x182A6F580")]
|
||||
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: 0x0600D090 RID: 53392 RVA: 0x002F625C File Offset: 0x002F445C
|
||||
[Token(Token = "0x600D090")]
|
||||
[Address(RVA = "0x2A6F3C0", Offset = "0x2A6E3C0", VA = "0x182A6F3C0")]
|
||||
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: 0x0600D091 RID: 53393 RVA: 0x002F62AC File Offset: 0x002F44AC
|
||||
[Token(Token = "0x600D091")]
|
||||
[Address(RVA = "0x2A6F810", Offset = "0x2A6E810", VA = "0x182A6F810")]
|
||||
internal static void SkipWhiteSpace(this string str, ref int pos)
|
||||
{
|
||||
char c;
|
||||
if (char.IsWhiteSpace(c))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D092 RID: 53394 RVA: 0x002F62C8 File Offset: 0x002F44C8
|
||||
[Token(Token = "0x600D092")]
|
||||
[Address(RVA = "0x2A6FAB0", Offset = "0x2A6EAB0", VA = "0x182A6FAB0")]
|
||||
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: 0x0600D093 RID: 53395 RVA: 0x002F6338 File Offset: 0x002F4538
|
||||
[Token(Token = "0x600D093")]
|
||||
[Address(RVA = "0x2A6F1E0", Offset = "0x2A6E1E0", VA = "0x182A6F1E0")]
|
||||
internal static char? Peek(this string str, int pos)
|
||||
{
|
||||
if (pos < str.m_stringLength)
|
||||
{
|
||||
char c = str[pos];
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600D094 RID: 53396 RVA: 0x002F6360 File Offset: 0x002F4560
|
||||
[Token(Token = "0x600D094")]
|
||||
[Address(RVA = "0x2A6EDC0", Offset = "0x2A6DDC0", VA = "0x182A6EDC0")]
|
||||
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: 0x0600D095 RID: 53397 RVA: 0x002F63EC File Offset: 0x002F45EC
|
||||
[Token(Token = "0x600D095")]
|
||||
[Address(RVA = "0x2A6EFC0", Offset = "0x2A6DFC0", VA = "0x182A6EFC0")]
|
||||
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: 0x0600D096 RID: 53398 RVA: 0x002F6470 File Offset: 0x002F4670
|
||||
[Token(Token = "0x600D096")]
|
||||
[Address(RVA = "0x2A6F270", Offset = "0x2A6E270", VA = "0x182A6F270")]
|
||||
public static void ReadBuffer(this Stream stream, byte[] buffer)
|
||||
{
|
||||
int num = 0;
|
||||
int num2 = buffer.Length;
|
||||
num2 -= num;
|
||||
}
|
||||
|
||||
// Token: 0x0600D097 RID: 53399 RVA: 0x002F6490 File Offset: 0x002F4690
|
||||
[Token(Token = "0x600D097")]
|
||||
[Address(RVA = "0x2A6F310", Offset = "0x2A6E310", VA = "0x182A6F310")]
|
||||
public static void ReadBuffer(this Stream stream, byte[] buffer, int length)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D098 RID: 53400 RVA: 0x002F64A8 File Offset: 0x002F46A8
|
||||
[Token(Token = "0x600D098")]
|
||||
[Address(RVA = "0x2A700E0", Offset = "0x2A6F0E0", VA = "0x182A700E0")]
|
||||
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: 0x0600D099 RID: 53401 RVA: 0x002F64E8 File Offset: 0x002F46E8
|
||||
[Token(Token = "0x600D099")]
|
||||
[Address(RVA = "0x2A6FC40", Offset = "0x2A6EC40", VA = "0x182A6FC40")]
|
||||
public static void WriteLine(this BufferPoolMemoryStream ms)
|
||||
{
|
||||
byte[] eol = HTTPRequest.EOL;
|
||||
int num = ms.ReadByte();
|
||||
}
|
||||
|
||||
// Token: 0x0600D09A RID: 53402 RVA: 0x002F6508 File Offset: 0x002F4708
|
||||
[Token(Token = "0x600D09A")]
|
||||
[Address(RVA = "0x2A6FF20", Offset = "0x2A6EF20", VA = "0x182A6FF20")]
|
||||
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: 0x0600D09B RID: 53403 RVA: 0x002F6554 File Offset: 0x002F4754
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D09B")]
|
||||
[Address(RVA = "0x2A70200", Offset = "0x2A6F200", VA = "0x182A70200")]
|
||||
static Extensions()
|
||||
{
|
||||
Regex regex = new Regex("\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b", RegexOptions.IgnoreCase);
|
||||
}
|
||||
|
||||
// Token: 0x04008418 RID: 33816
|
||||
[Token(Token = "0x4008418")]
|
||||
private static readonly Regex validIpV4AddressRegex;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BestHTTP.Logger;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02002073 RID: 8307
|
||||
[Token(Token = "0x2002073")]
|
||||
public sealed class HeaderParser : KeyValuePairList
|
||||
{
|
||||
// Token: 0x0600D0A4 RID: 53412 RVA: 0x002F6614 File Offset: 0x002F4814
|
||||
[Token(Token = "0x600D0A4")]
|
||||
[Address(RVA = "0x2A7F990", Offset = "0x2A7E990", VA = "0x182A7F990")]
|
||||
public HeaderParser(string headerStr)
|
||||
{
|
||||
List<HeaderValue> list = this.Parse(headerStr);
|
||||
this.<Values>k__BackingField = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0A5 RID: 53413 RVA: 0x002F6638 File Offset: 0x002F4838
|
||||
[Token(Token = "0x600D0A5")]
|
||||
[Address(RVA = "0x2A7F820", Offset = "0x2A7E820", VA = "0x182A7F820")]
|
||||
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: 0x02002074 RID: 8308
|
||||
[Token(Token = "0x2002074")]
|
||||
public sealed class HeaderValue
|
||||
{
|
||||
// Token: 0x1700212C RID: 8492
|
||||
// (get) Token: 0x0600D0A6 RID: 53414 RVA: 0x002F6684 File Offset: 0x002F4884
|
||||
// (set) Token: 0x0600D0A7 RID: 53415 RVA: 0x002F6698 File Offset: 0x002F4898
|
||||
[Token(Token = "0x1700212C")]
|
||||
public string Key
|
||||
{
|
||||
[Token(Token = "0x600D0A6")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get;
|
||||
[Token(Token = "0x600D0A7")]
|
||||
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x1700212D RID: 8493
|
||||
// (get) Token: 0x0600D0A8 RID: 53416 RVA: 0x002F66AC File Offset: 0x002F48AC
|
||||
// (set) Token: 0x0600D0A9 RID: 53417 RVA: 0x002F66C0 File Offset: 0x002F48C0
|
||||
[Token(Token = "0x1700212D")]
|
||||
public string Value
|
||||
{
|
||||
[Token(Token = "0x600D0A8")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get;
|
||||
[Token(Token = "0x600D0A9")]
|
||||
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x1700212E RID: 8494
|
||||
// (get) Token: 0x0600D0AA RID: 53418 RVA: 0x002F66D4 File Offset: 0x002F48D4
|
||||
// (set) Token: 0x0600D0AB RID: 53419 RVA: 0x002F66E8 File Offset: 0x002F48E8
|
||||
[Token(Token = "0x1700212E")]
|
||||
public List<HeaderValue> Options
|
||||
{
|
||||
[Token(Token = "0x600D0AA")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get;
|
||||
[Token(Token = "0x600D0AB")]
|
||||
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x1700212F RID: 8495
|
||||
// (get) Token: 0x0600D0AC RID: 53420 RVA: 0x002F66FC File Offset: 0x002F48FC
|
||||
[Token(Token = "0x1700212F")]
|
||||
public bool HasValue
|
||||
{
|
||||
[Token(Token = "0x600D0AC")]
|
||||
[Address(RVA = "0x2A7FEC0", Offset = "0x2A7EEC0", VA = "0x182A7FEC0")]
|
||||
get
|
||||
{
|
||||
return !string.IsNullOrEmpty(this.<Value>k__BackingField);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D0AD RID: 53421 RVA: 0x002F6718 File Offset: 0x002F4918
|
||||
[Token(Token = "0x600D0AD")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public HeaderValue()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D0AE RID: 53422 RVA: 0x002F672C File Offset: 0x002F492C
|
||||
[Token(Token = "0x600D0AE")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
public HeaderValue(string key)
|
||||
{
|
||||
this.Key = key;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0AF RID: 53423 RVA: 0x002F6748 File Offset: 0x002F4948
|
||||
[Token(Token = "0x600D0AF")]
|
||||
[Address(RVA = "0x2A7FD20", Offset = "0x2A7ED20", VA = "0x182A7FD20")]
|
||||
public void Parse(string headerStr, ref int pos)
|
||||
{
|
||||
this.ParseImplementation(headerStr, ref pos, true);
|
||||
}
|
||||
|
||||
// Token: 0x0600D0B0 RID: 53424 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600D0B0")]
|
||||
[Address(RVA = "0x2A7FDD0", Offset = "0x2A7EDD0", VA = "0x182A7FDD0")]
|
||||
public bool TryGetOption(string key, out HeaderValue option)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600D0B1 RID: 53425 RVA: 0x002F6760 File Offset: 0x002F4960
|
||||
[Token(Token = "0x600D0B1")]
|
||||
[Address(RVA = "0x2A7F9D0", Offset = "0x2A7E9D0", VA = "0x182A7F9D0")]
|
||||
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: 0x0600D0B2 RID: 53426 RVA: 0x002F6848 File Offset: 0x002F4A48
|
||||
[Token(Token = "0x600D0B2")]
|
||||
[Address(RVA = "0x2A7FD40", Offset = "0x2A7ED40", VA = "0x182A7FD40", 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: 0x02002077 RID: 8311
|
||||
[Token(Token = "0x2002077")]
|
||||
public sealed class HeartbeatManager
|
||||
{
|
||||
// Token: 0x0600D0B7 RID: 53431 RVA: 0x002F68AC File Offset: 0x002F4AAC
|
||||
[Token(Token = "0x600D0B7")]
|
||||
[Address(RVA = "0x2A7FEE0", Offset = "0x2A7EEE0", VA = "0x182A7FEE0")]
|
||||
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: 0x0600D0B8 RID: 53432 RVA: 0x002F68F4 File Offset: 0x002F4AF4
|
||||
[Token(Token = "0x600D0B8")]
|
||||
[Address(RVA = "0x2A7FFD0", Offset = "0x2A7EFD0", VA = "0x182A7FFD0")]
|
||||
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: 0x0600D0B9 RID: 53433 RVA: 0x002F6928 File Offset: 0x002F4B28
|
||||
[Token(Token = "0x600D0B9")]
|
||||
[Address(RVA = "0x2A800A0", Offset = "0x2A7F0A0", VA = "0x182A800A0")]
|
||||
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: 0x0600D0BA RID: 53434 RVA: 0x002F6A28 File Offset: 0x002F4C28
|
||||
[Token(Token = "0x600D0BA")]
|
||||
[Address(RVA = "0x2A80320", Offset = "0x2A7F320", VA = "0x182A80320")]
|
||||
public HeartbeatManager()
|
||||
{
|
||||
List<IHeartbeat> list = new List();
|
||||
this.Heartbeats = list;
|
||||
DateTime minValue = DateTime.MinValue;
|
||||
this.LastUpdate = minValue;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04008423 RID: 33827
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008423")]
|
||||
private List<IHeartbeat> Heartbeats;
|
||||
|
||||
// Token: 0x04008424 RID: 33828
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008424")]
|
||||
private IHeartbeat[] UpdateArray;
|
||||
|
||||
// Token: 0x04008425 RID: 33829
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008425")]
|
||||
private DateTime LastUpdate;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02002076 RID: 8310
|
||||
[Token(Token = "0x2002076")]
|
||||
public interface IHeartbeat
|
||||
{
|
||||
// Token: 0x0600D0B6 RID: 53430
|
||||
[Token(Token = "0x600D0B6")]
|
||||
[Address(Slot = "0")]
|
||||
void OnHeartbeatUpdate(TimeSpan dif);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02002078 RID: 8312
|
||||
[Token(Token = "0x2002078")]
|
||||
public class KeyValuePairList
|
||||
{
|
||||
// Token: 0x17002130 RID: 8496
|
||||
// (get) Token: 0x0600D0BB RID: 53435 RVA: 0x002F6A58 File Offset: 0x002F4C58
|
||||
// (set) Token: 0x0600D0BC RID: 53436 RVA: 0x002F6A6C File Offset: 0x002F4C6C
|
||||
[Token(Token = "0x17002130")]
|
||||
public List<HeaderValue> Values
|
||||
{
|
||||
[Token(Token = "0x600D0BB")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get;
|
||||
[Token(Token = "0x600D0BC")]
|
||||
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
||||
protected set;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0BD RID: 53437 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600D0BD")]
|
||||
[Address(RVA = "0x2A803C0", Offset = "0x2A7F3C0", VA = "0x182A803C0")]
|
||||
public bool TryGet(string valueKeyName, out HeaderValue param)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600D0BE RID: 53438 RVA: 0x002F6A80 File Offset: 0x002F4C80
|
||||
[Token(Token = "0x600D0BE")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public KeyValuePairList()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,385 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x02002079 RID: 8313
|
||||
[Token(Token = "0x2002079")]
|
||||
public class ReadOnlyBufferedStream : Stream
|
||||
{
|
||||
// Token: 0x17002131 RID: 8497
|
||||
// (get) Token: 0x0600D0BF RID: 53439 RVA: 0x002F6A94 File Offset: 0x002F4C94
|
||||
// (set) Token: 0x0600D0C0 RID: 53440 RVA: 0x002F6AA8 File Offset: 0x002F4CA8
|
||||
[Token(Token = "0x17002131")]
|
||||
public bool CheckForDataAvailability
|
||||
{
|
||||
[Token(Token = "0x600D0BF")]
|
||||
[Address(RVA = "0x51F260", Offset = "0x51E260", VA = "0x18051F260")]
|
||||
get;
|
||||
[Token(Token = "0x600D0C0")]
|
||||
[Address(RVA = "0x51F2B0", Offset = "0x51E2B0", VA = "0x18051F2B0")]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0C1 RID: 53441 RVA: 0x002F6ABC File Offset: 0x002F4CBC
|
||||
[Token(Token = "0x600D0C1")]
|
||||
[Address(RVA = "0x2A80B40", Offset = "0x2A7FB40", VA = "0x182A80B40")]
|
||||
public ReadOnlyBufferedStream(Stream nstream)
|
||||
{
|
||||
this.stream = nstream;
|
||||
byte[] array;
|
||||
this.buf = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0C2 RID: 53442 RVA: 0x002F6AE0 File Offset: 0x002F4CE0
|
||||
[Token(Token = "0x600D0C2")]
|
||||
[Address(RVA = "0x2A808D0", Offset = "0x2A7F8D0", VA = "0x182A808D0", 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: 0x0600D0C3 RID: 53443 RVA: 0x002F6B80 File Offset: 0x002F4D80
|
||||
[Token(Token = "0x600D0C3")]
|
||||
[Address(RVA = "0x2A807A0", Offset = "0x2A7F7A0", VA = "0x182A807A0", 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: 0x0600D0C4 RID: 53444 RVA: 0x002F6BEC File Offset: 0x002F4DEC
|
||||
[Token(Token = "0x600D0C4")]
|
||||
[Address(RVA = "0x2A806E0", Offset = "0x2A7F6E0", VA = "0x182A806E0", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
byte[] array = this.buf;
|
||||
if (array != 0)
|
||||
{
|
||||
VariableSizedBufferPool.Release(array);
|
||||
}
|
||||
this.buf = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x17002132 RID: 8498
|
||||
// (get) Token: 0x0600D0C5 RID: 53445 RVA: 0x002F6C14 File Offset: 0x002F4E14
|
||||
[Token(Token = "0x17002132")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600D0C5")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002133 RID: 8499
|
||||
// (get) Token: 0x0600D0C6 RID: 53446 RVA: 0x002F6C24 File Offset: 0x002F4E24
|
||||
[Token(Token = "0x17002133")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600D0C6")]
|
||||
[Address(RVA = "0x2A80BE0", Offset = "0x2A7FBE0", VA = "0x182A80BE0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0C6)
|
||||
|
||||
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: 0x17002134 RID: 8500
|
||||
// (get) Token: 0x0600D0C7 RID: 53447 RVA: 0x002F6C38 File Offset: 0x002F4E38
|
||||
[Token(Token = "0x17002134")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600D0C7")]
|
||||
[Address(RVA = "0x2A80C30", Offset = "0x2A7FC30", VA = "0x182A80C30", Slot = "9")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0C7)
|
||||
|
||||
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: 0x17002135 RID: 8501
|
||||
// (get) Token: 0x0600D0C8 RID: 53448 RVA: 0x002F6C4C File Offset: 0x002F4E4C
|
||||
[Token(Token = "0x17002135")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600D0C8")]
|
||||
[Address(RVA = "0x2A80C80", Offset = "0x2A7FC80", VA = "0x182A80C80", Slot = "10")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0C8)
|
||||
|
||||
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: 0x17002136 RID: 8502
|
||||
// (get) Token: 0x0600D0C9 RID: 53449 RVA: 0x002F6C60 File Offset: 0x002F4E60
|
||||
// (set) Token: 0x0600D0CA RID: 53450 RVA: 0x002F6C74 File Offset: 0x002F4E74
|
||||
[Token(Token = "0x17002136")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600D0C9")]
|
||||
[Address(RVA = "0x2A80CD0", Offset = "0x2A7FCD0", VA = "0x182A80CD0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0C9)
|
||||
|
||||
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 = "0x600D0CA")]
|
||||
[Address(RVA = "0x2A80D20", Offset = "0x2A7FD20", VA = "0x182A80D20", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0CA)
|
||||
|
||||
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: 0x0600D0CB RID: 53451 RVA: 0x002F6C88 File Offset: 0x002F4E88
|
||||
[Token(Token = "0x600D0CB")]
|
||||
[Address(RVA = "0x2A80750", Offset = "0x2A7F750", VA = "0x182A80750", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0CB)
|
||||
|
||||
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: 0x0600D0CC RID: 53452 RVA: 0x002F6C9C File Offset: 0x002F4E9C
|
||||
[Token(Token = "0x600D0CC")]
|
||||
[Address(RVA = "0x2A80A50", Offset = "0x2A7FA50", VA = "0x182A80A50", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0CC)
|
||||
|
||||
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: 0x0600D0CD RID: 53453 RVA: 0x002F6CB0 File Offset: 0x002F4EB0
|
||||
[Token(Token = "0x600D0CD")]
|
||||
[Address(RVA = "0x2A80AA0", Offset = "0x2A7FAA0", VA = "0x182A80AA0", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0CD)
|
||||
|
||||
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: 0x0600D0CE RID: 53454 RVA: 0x002F6CC4 File Offset: 0x002F4EC4
|
||||
[Token(Token = "0x600D0CE")]
|
||||
[Address(RVA = "0x2A80AF0", Offset = "0x2A7FAF0", VA = "0x182A80AF0", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0CE)
|
||||
|
||||
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: 0x04008428 RID: 33832
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008428")]
|
||||
private Stream stream;
|
||||
|
||||
// Token: 0x04008429 RID: 33833
|
||||
[Token(Token = "0x4008429")]
|
||||
public const int READBUFFER = 8192;
|
||||
|
||||
// Token: 0x0400842A RID: 33834
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400842A")]
|
||||
private byte[] buf;
|
||||
|
||||
// Token: 0x0400842B RID: 33835
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400842B")]
|
||||
private int available;
|
||||
|
||||
// Token: 0x0400842C RID: 33836
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x400842C")]
|
||||
private int pos;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,424 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using BestHTTP.Logger;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x0200207C RID: 8316
|
||||
[Token(Token = "0x200207C")]
|
||||
public static class VariableSizedBufferPool
|
||||
{
|
||||
// Token: 0x17002137 RID: 8503
|
||||
// (get) Token: 0x0600D0D3 RID: 53459 RVA: 0x002F6D6C File Offset: 0x002F4F6C
|
||||
// (set) Token: 0x0600D0D4 RID: 53460 RVA: 0x002F6D80 File Offset: 0x002F4F80
|
||||
[Token(Token = "0x17002137")]
|
||||
public static bool IsEnabled
|
||||
{
|
||||
[Token(Token = "0x600D0D3")]
|
||||
[Address(RVA = "0x2A83050", Offset = "0x2A82050", VA = "0x182A83050")]
|
||||
get
|
||||
{
|
||||
return VariableSizedBufferPool._isEnabled;
|
||||
}
|
||||
[Token(Token = "0x600D0D4")]
|
||||
[Address(RVA = "0x2A830C0", Offset = "0x2A820C0", VA = "0x182A830C0")]
|
||||
set
|
||||
{
|
||||
VariableSizedBufferPool._isEnabled = value;
|
||||
if (!VariableSizedBufferPool._isEnabled)
|
||||
{
|
||||
VariableSizedBufferPool.Clear();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D0D5 RID: 53461 RVA: 0x002F6DA4 File Offset: 0x002F4FA4
|
||||
[Token(Token = "0x600D0D5")]
|
||||
[Address(RVA = "0x2A82E30", Offset = "0x2A81E30", VA = "0x182A82E30")]
|
||||
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: 0x0600D0D6 RID: 53462 RVA: 0x002F6E0C File Offset: 0x002F500C
|
||||
[Token(Token = "0x600D0D6")]
|
||||
[Address(RVA = "0x2A81DF0", Offset = "0x2A80DF0", VA = "0x182A81DF0")]
|
||||
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: 0x0600D0D7 RID: 53463 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600D0D7")]
|
||||
[Address(RVA = "0x2A82C00", Offset = "0x2A81C00", VA = "0x182A82C00")]
|
||||
public static void Release(List<byte[]> buffers)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600D0D8 RID: 53464 RVA: 0x002F6F00 File Offset: 0x002F5100
|
||||
[Token(Token = "0x600D0D8")]
|
||||
[Address(RVA = "0x2A829B0", Offset = "0x2A819B0", VA = "0x182A829B0")]
|
||||
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: 0x0600D0D9 RID: 53465 RVA: 0x002F6F58 File Offset: 0x002F5158
|
||||
[Token(Token = "0x600D0D9")]
|
||||
[Address(RVA = "0x2A82CE0", Offset = "0x2A81CE0", VA = "0x182A82CE0")]
|
||||
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: 0x0600D0DA RID: 53466 RVA: 0x002F6F90 File Offset: 0x002F5190
|
||||
[Token(Token = "0x600D0DA")]
|
||||
[Address(RVA = "0x2A81970", Offset = "0x2A80970", VA = "0x182A81970")]
|
||||
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: 0x0600D0DB RID: 53467 RVA: 0x002F7088 File Offset: 0x002F5288
|
||||
[Token(Token = "0x600D0DB")]
|
||||
[Address(RVA = "0x2A81650", Offset = "0x2A80650", VA = "0x182A81650")]
|
||||
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: 0x0600D0DC RID: 53468 RVA: 0x002F70C0 File Offset: 0x002F52C0
|
||||
[Token(Token = "0x600D0DC")]
|
||||
[Address(RVA = "0x2A82370", Offset = "0x2A81370", VA = "0x182A82370")]
|
||||
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: 0x0600D0DD RID: 53469 RVA: 0x002F721C File Offset: 0x002F541C
|
||||
[Token(Token = "0x600D0DD")]
|
||||
[Address(RVA = "0x2A82360", Offset = "0x2A81360", VA = "0x182A82360")]
|
||||
private static bool IsPowerOfTwo(long x)
|
||||
{
|
||||
long num = x - 1L;
|
||||
return x == num;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0DE RID: 53470 RVA: 0x002F7234 File Offset: 0x002F5434
|
||||
[Token(Token = "0x600D0DE")]
|
||||
[Address(RVA = "0x2A82990", Offset = "0x2A81990", VA = "0x182A82990")]
|
||||
private static long NextPowerOf2(long x)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0DE)
|
||||
|
||||
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: 0x0600D0DF RID: 53471 RVA: 0x002F7248 File Offset: 0x002F5448
|
||||
[Token(Token = "0x600D0DF")]
|
||||
[Address(RVA = "0x2A81780", Offset = "0x2A80780", VA = "0x182A81780")]
|
||||
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: 0x0600D0E0 RID: 53472 RVA: 0x002F7290 File Offset: 0x002F5490
|
||||
[Token(Token = "0x600D0E0")]
|
||||
[Address(RVA = "0x2A812F0", Offset = "0x2A802F0", VA = "0x182A812F0")]
|
||||
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;
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
int num4 = 0;
|
||||
VariableSizedBufferPool.FreeBuffers.Add(num4);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008432 RID: 33842
|
||||
[Token(Token = "0x4008432")]
|
||||
public static readonly byte[] NoData = new byte[0];
|
||||
|
||||
// Token: 0x04008433 RID: 33843
|
||||
[Token(Token = "0x4008433")]
|
||||
public static bool _isEnabled;
|
||||
|
||||
// Token: 0x04008434 RID: 33844
|
||||
[Token(Token = "0x4008434")]
|
||||
public static TimeSpan RemoveOlderThan;
|
||||
|
||||
// Token: 0x04008435 RID: 33845
|
||||
[Token(Token = "0x4008435")]
|
||||
public static TimeSpan RunMaintenanceEvery;
|
||||
|
||||
// Token: 0x04008436 RID: 33846
|
||||
[Token(Token = "0x4008436")]
|
||||
public static long MinBufferSize;
|
||||
|
||||
// Token: 0x04008437 RID: 33847
|
||||
[Token(Token = "0x4008437")]
|
||||
public static long MaxBufferSize;
|
||||
|
||||
// Token: 0x04008438 RID: 33848
|
||||
[Token(Token = "0x4008438")]
|
||||
public static long MaxPoolSize;
|
||||
|
||||
// Token: 0x04008439 RID: 33849
|
||||
[Token(Token = "0x4008439")]
|
||||
public static bool RemoveEmptyLists;
|
||||
|
||||
// Token: 0x0400843A RID: 33850
|
||||
[Token(Token = "0x400843A")]
|
||||
public static bool IsDoubleReleaseCheckEnabled;
|
||||
|
||||
// Token: 0x0400843B RID: 33851
|
||||
[Token(Token = "0x400843B")]
|
||||
private static List<BufferStore> FreeBuffers;
|
||||
|
||||
// Token: 0x0400843C RID: 33852
|
||||
[Token(Token = "0x400843C")]
|
||||
private static DateTime lastMaintenance;
|
||||
|
||||
// Token: 0x0400843D RID: 33853
|
||||
[Token(Token = "0x400843D")]
|
||||
private static int PoolSize;
|
||||
|
||||
// Token: 0x0400843E RID: 33854
|
||||
[Token(Token = "0x400843E")]
|
||||
private static uint GetBuffers;
|
||||
|
||||
// Token: 0x0400843F RID: 33855
|
||||
[Token(Token = "0x400843F")]
|
||||
private static uint ReleaseBuffers;
|
||||
|
||||
// Token: 0x04008440 RID: 33856
|
||||
[Token(Token = "0x4008440")]
|
||||
private static StringBuilder statiscticsBuilder;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x0200207D RID: 8317
|
||||
[Token(Token = "0x200207D")]
|
||||
public sealed class WWWAuthenticateHeaderParser : KeyValuePairList
|
||||
{
|
||||
// Token: 0x0600D0E1 RID: 53473 RVA: 0x002F7318 File Offset: 0x002F5518
|
||||
[Token(Token = "0x600D0E1")]
|
||||
[Address(RVA = "0x2A833B0", Offset = "0x2A823B0", VA = "0x182A833B0")]
|
||||
public WWWAuthenticateHeaderParser(string headerValue)
|
||||
{
|
||||
List<HeaderValue> list = this.ParseQuotedHeader(headerValue);
|
||||
this.<Values>k__BackingField = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0E2 RID: 53474 RVA: 0x002F733C File Offset: 0x002F553C
|
||||
[Token(Token = "0x600D0E2")]
|
||||
[Address(RVA = "0x2A83170", Offset = "0x2A82170", VA = "0x182A83170")]
|
||||
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: 0x0200207F RID: 8319
|
||||
[Token(Token = "0x200207F")]
|
||||
public sealed class WriteOnlyBufferedStream : Stream
|
||||
{
|
||||
// Token: 0x17002138 RID: 8504
|
||||
// (get) Token: 0x0600D0E6 RID: 53478 RVA: 0x002F7430 File Offset: 0x002F5630
|
||||
[Token(Token = "0x17002138")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600D0E6")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002139 RID: 8505
|
||||
// (get) Token: 0x0600D0E7 RID: 53479 RVA: 0x002F7440 File Offset: 0x002F5640
|
||||
[Token(Token = "0x17002139")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600D0E7")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700213A RID: 8506
|
||||
// (get) Token: 0x0600D0E8 RID: 53480 RVA: 0x002F7450 File Offset: 0x002F5650
|
||||
[Token(Token = "0x1700213A")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600D0E8")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700213B RID: 8507
|
||||
// (get) Token: 0x0600D0E9 RID: 53481 RVA: 0x002F7460 File Offset: 0x002F5660
|
||||
[Token(Token = "0x1700213B")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600D0E9")]
|
||||
[Address(RVA = "0x2A83770", Offset = "0x2A82770", VA = "0x182A83770", Slot = "10")]
|
||||
get
|
||||
{
|
||||
int length = this.buffer.Length;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700213C RID: 8508
|
||||
// (get) Token: 0x0600D0EA RID: 53482 RVA: 0x002F7480 File Offset: 0x002F5680
|
||||
// (set) Token: 0x0600D0EB RID: 53483 RVA: 0x002F7494 File Offset: 0x002F5694
|
||||
[Token(Token = "0x1700213C")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600D0EA")]
|
||||
[Address(RVA = "0x2A83790", Offset = "0x2A82790", VA = "0x182A83790", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0EA)
|
||||
|
||||
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 = "0x600D0EB")]
|
||||
[Address(RVA = "0x2A837A0", Offset = "0x2A827A0", VA = "0x182A837A0", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D0EB)
|
||||
|
||||
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: 0x0600D0EC RID: 53484 RVA: 0x002F74AC File Offset: 0x002F56AC
|
||||
[Token(Token = "0x600D0EC")]
|
||||
[Address(RVA = "0x2A836C0", Offset = "0x2A826C0", VA = "0x182A836C0")]
|
||||
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: 0x0600D0ED RID: 53485 RVA: 0x002F74E0 File Offset: 0x002F56E0
|
||||
[Token(Token = "0x600D0ED")]
|
||||
[Address(RVA = "0x2A83470", Offset = "0x2A82470", VA = "0x182A83470", 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: 0x0600D0EE RID: 53486 RVA: 0x002F752C File Offset: 0x002F572C
|
||||
[Token(Token = "0x600D0EE")]
|
||||
[Address(RVA = "0x2A835B0", Offset = "0x2A825B0", VA = "0x182A835B0", 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: 0x0600D0EF RID: 53487 RVA: 0x002F75B0 File Offset: 0x002F57B0
|
||||
[Token(Token = "0x600D0EF")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0F0 RID: 53488 RVA: 0x002F75C0 File Offset: 0x002F57C0
|
||||
[Token(Token = "0x600D0F0")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D0F1 RID: 53489 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600D0F1")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600D0F2 RID: 53490 RVA: 0x002F75D0 File Offset: 0x002F57D0
|
||||
[Token(Token = "0x600D0F2")]
|
||||
[Address(RVA = "0x2A833F0", Offset = "0x2A823F0", VA = "0x182A833F0", 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: 0x04008443 RID: 33859
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008443")]
|
||||
private int _position;
|
||||
|
||||
// Token: 0x04008444 RID: 33860
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008444")]
|
||||
private byte[] buffer;
|
||||
|
||||
// Token: 0x04008445 RID: 33861
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008445")]
|
||||
private Stream stream;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user