using System; using System.IO; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls { // Token: 0x02001B00 RID: 6912 [Token(Token = "0x2001B00")] public class ByteQueueStream : Stream { // Token: 0x0600ABF0 RID: 44016 RVA: 0x00256BEC File Offset: 0x00254DEC [Token(Token = "0x600ABF0")] [Address(RVA = "0x18A7C70", Offset = "0x18A6A70", VA = "0x1818A7C70")] public ByteQueueStream() { ByteQueue byteQueue = new ByteQueue(); byte[] array = new byte[1024]; byteQueue.databuf = array; this.buffer = byteQueue; } // Token: 0x17001B46 RID: 6982 // (get) Token: 0x0600ABF1 RID: 44017 RVA: 0x00256C24 File Offset: 0x00254E24 [Token(Token = "0x17001B46")] public virtual int Available { [Token(Token = "0x600ABF1")] [Address(RVA = "0x18A7D30", Offset = "0x18A6B30", VA = "0x1818A7D30", Slot = "31")] get { return this.buffer.available; } } // Token: 0x17001B47 RID: 6983 // (get) Token: 0x0600ABF2 RID: 44018 RVA: 0x00256C44 File Offset: 0x00254E44 [Token(Token = "0x17001B47")] public override bool CanRead { [Token(Token = "0x600ABF2")] [Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")] get { return true; } } // Token: 0x17001B48 RID: 6984 // (get) Token: 0x0600ABF3 RID: 44019 RVA: 0x00256C54 File Offset: 0x00254E54 [Token(Token = "0x17001B48")] public override bool CanSeek { [Token(Token = "0x600ABF3")] [Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")] get { } } // Token: 0x17001B49 RID: 6985 // (get) Token: 0x0600ABF4 RID: 44020 RVA: 0x00256C64 File Offset: 0x00254E64 [Token(Token = "0x17001B49")] public override bool CanWrite { [Token(Token = "0x600ABF4")] [Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "9")] get { return true; } } // Token: 0x0600ABF5 RID: 44021 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600ABF5")] [Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")] public override void Flush() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x17001B4A RID: 6986 // (get) Token: 0x0600ABF6 RID: 44022 RVA: 0x00256C74 File Offset: 0x00254E74 [Token(Token = "0x17001B4A")] public override long Length { [Token(Token = "0x600ABF6")] [Address(RVA = "0x18A7D50", Offset = "0x18A6B50", VA = "0x1818A7D50", Slot = "10")] get { /* An exception occurred when decompiling this method (0600ABF6) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.ByteQueueStream::get_Length() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.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: 0x0600ABF7 RID: 44023 RVA: 0x00256C88 File Offset: 0x00254E88 [Token(Token = "0x600ABF7")] [Address(RVA = "0x18A7790", Offset = "0x18A6590", VA = "0x1818A7790", Slot = "32")] public virtual int Peek(byte[] buf) { int num = this.buffer.available; int length = buf.Length; int num2 = Math.Min(num, length); ByteQueue byteQueue = this.buffer; num = num2; int num3 = 0; int num4 = 0; byteQueue.Read(buf, num4, num, num3); return num; } // Token: 0x17001B4B RID: 6987 // (get) Token: 0x0600ABF8 RID: 44024 RVA: 0x00256CD4 File Offset: 0x00254ED4 // (set) Token: 0x0600ABF9 RID: 44025 RVA: 0x00256CE8 File Offset: 0x00254EE8 [Token(Token = "0x17001B4B")] public override long Position { [Token(Token = "0x600ABF8")] [Address(RVA = "0x18A7DA0", Offset = "0x18A6BA0", VA = "0x1818A7DA0", Slot = "11")] get { /* An exception occurred when decompiling this method (0600ABF8) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.ByteQueueStream::get_Position() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.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 = "0x600ABF9")] [Address(RVA = "0x18A7DF0", Offset = "0x18A6BF0", VA = "0x1818A7DF0", Slot = "12")] set { /* An exception occurred when decompiling this method (0600ABF9) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.ByteQueueStream::set_Position(System.Int64) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.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: 0x0600ABFA RID: 44026 RVA: 0x00256CFC File Offset: 0x00254EFC [Token(Token = "0x600ABFA")] [Address(RVA = "0x18A79E0", Offset = "0x18A67E0", VA = "0x1818A79E0", Slot = "33")] public virtual int Read(byte[] buf) { throw new NullReferenceException(); } // Token: 0x0600ABFB RID: 44027 RVA: 0x00256D10 File Offset: 0x00254F10 [Token(Token = "0x600ABFB")] [Address(RVA = "0x18A7910", Offset = "0x18A6710", VA = "0x1818A7910", Slot = "27")] public override int Read(byte[] buf, int off, int len) { int num = this.buffer.available; int num2 = Math.Min(num, len); ByteQueue byteQueue = this.buffer; num = num2; int num3 = 0; byteQueue.Read(buf, off, len, num3); byteQueue.RemoveData(num); return num; } // Token: 0x0600ABFC RID: 44028 RVA: 0x00256D54 File Offset: 0x00254F54 [Token(Token = "0x600ABFC")] [Address(RVA = "0x18A7840", Offset = "0x18A6640", VA = "0x1818A7840", Slot = "28")] public override int ReadByte() { ByteQueue byteQueue = this.buffer; if (byteQueue.available != 0) { byte[] array = new byte[1]; int num = 0; int num2 = 0; byteQueue.Read(array, num, 1, num2); byteQueue.RemoveData(1); byte b = array[0]; } return -1; } // Token: 0x0600ABFD RID: 44029 RVA: 0x00256DA0 File Offset: 0x00254FA0 [Token(Token = "0x600ABFD")] [Address(RVA = "0x18A7A20", Offset = "0x18A6820", VA = "0x1818A7A20", Slot = "25")] public override long Seek(long offset, SeekOrigin origin) { /* An exception occurred when decompiling this method (0600ABFD) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.ByteQueueStream::Seek(System.Int64,System.IO.SeekOrigin) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.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: 0x0600ABFE RID: 44030 RVA: 0x00256DB4 File Offset: 0x00254FB4 [Token(Token = "0x600ABFE")] [Address(RVA = "0x18A7A70", Offset = "0x18A6870", VA = "0x1818A7A70", Slot = "26")] public override void SetLength(long value) { /* An exception occurred when decompiling this method (0600ABFE) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.ByteQueueStream::SetLength(System.Int64) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.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: 0x0600ABFF RID: 44031 RVA: 0x00256DC8 File Offset: 0x00254FC8 [Token(Token = "0x600ABFF")] [Address(RVA = "0x18A7AC0", Offset = "0x18A68C0", VA = "0x1818A7AC0", Slot = "34")] public virtual int Skip(int n) { int num = this.buffer.available; int num2 = Math.Min(num, n); ByteQueue byteQueue = this.buffer; num = num2; byteQueue.RemoveData(n); return num; } // Token: 0x0600AC00 RID: 44032 RVA: 0x00256E04 File Offset: 0x00255004 [Token(Token = "0x600AC00")] [Address(RVA = "0x18A7C00", Offset = "0x18A6A00", VA = "0x1818A7C00", Slot = "35")] public virtual void Write(byte[] buf) { ByteQueue byteQueue = this.buffer; int length = buf.Length; int num = 0; byteQueue.AddData(buf, num, length); } // Token: 0x0600AC01 RID: 44033 RVA: 0x00256E30 File Offset: 0x00255030 [Token(Token = "0x600AC01")] [Address(RVA = "0x18A7C40", Offset = "0x18A6A40", VA = "0x1818A7C40", Slot = "29")] public override void Write(byte[] buf, int off, int len) { this.buffer.AddData(buf, off, len); } // Token: 0x0600AC02 RID: 44034 RVA: 0x00256E54 File Offset: 0x00255054 [Token(Token = "0x600AC02")] [Address(RVA = "0x18A7B60", Offset = "0x18A6960", VA = "0x1818A7B60", Slot = "30")] public override void WriteByte(byte b) { ByteQueue byteQueue = this.buffer; byte[] array = new byte[] { b }; int num = 0; byteQueue.AddData(array, num, 1); } // Token: 0x04006D05 RID: 27909 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4006D05")] private readonly ByteQueue buffer; } }