328 lines
19 KiB
C#
328 lines
19 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
|
|
{
|
|
// Token: 0x02001523 RID: 5411
|
|
[Token(Token = "0x2001523")]
|
|
[StructLayout(3)]
|
|
public class ByteQueueStream : Stream
|
|
{
|
|
// Token: 0x06009016 RID: 36886 RVA: 0x001FF540 File Offset: 0x001FD740
|
|
[Token(Token = "0x6009016")]
|
|
[Address(RVA = "0x1E744D0", Offset = "0x1E72ED0", VA = "0x181E744D0")]
|
|
public ByteQueueStream()
|
|
{
|
|
ByteQueue byteQueue = new ByteQueue();
|
|
byte[] array = new byte[1024];
|
|
byteQueue.databuf = array;
|
|
this.buffer = byteQueue;
|
|
}
|
|
|
|
// Token: 0x17001745 RID: 5957
|
|
// (get) Token: 0x06009017 RID: 36887 RVA: 0x001FF578 File Offset: 0x001FD778
|
|
[Token(Token = "0x17001745")]
|
|
public virtual int Available
|
|
{
|
|
[Token(Token = "0x6009017")]
|
|
[Address(RVA = "0x1E74590", Offset = "0x1E72F90", VA = "0x181E74590", Slot = "31")]
|
|
get
|
|
{
|
|
return this.buffer.available;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001746 RID: 5958
|
|
// (get) Token: 0x06009018 RID: 36888 RVA: 0x001FF598 File Offset: 0x001FD798
|
|
[Token(Token = "0x17001746")]
|
|
public override bool CanRead
|
|
{
|
|
[Token(Token = "0x6009018")]
|
|
[Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "7")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001747 RID: 5959
|
|
// (get) Token: 0x06009019 RID: 36889 RVA: 0x001FF5A8 File Offset: 0x001FD7A8
|
|
[Token(Token = "0x17001747")]
|
|
public override bool CanSeek
|
|
{
|
|
[Token(Token = "0x6009019")]
|
|
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "8")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001748 RID: 5960
|
|
// (get) Token: 0x0600901A RID: 36890 RVA: 0x001FF5B8 File Offset: 0x001FD7B8
|
|
[Token(Token = "0x17001748")]
|
|
public override bool CanWrite
|
|
{
|
|
[Token(Token = "0x600901A")]
|
|
[Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "9")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600901B RID: 36891 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600901B")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "17")]
|
|
public override void Flush()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x17001749 RID: 5961
|
|
// (get) Token: 0x0600901C RID: 36892 RVA: 0x001FF5C8 File Offset: 0x001FD7C8
|
|
[Token(Token = "0x17001749")]
|
|
public override long Length
|
|
{
|
|
[Token(Token = "0x600901C")]
|
|
[Address(RVA = "0x1E745B0", Offset = "0x1E72FB0", VA = "0x181E745B0", Slot = "10")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600901C)
|
|
|
|
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: 0x0600901D RID: 36893 RVA: 0x001FF5DC File Offset: 0x001FD7DC
|
|
[Token(Token = "0x600901D")]
|
|
[Address(RVA = "0x1E73FF0", Offset = "0x1E729F0", VA = "0x181E73FF0", 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: 0x1700174A RID: 5962
|
|
// (get) Token: 0x0600901E RID: 36894 RVA: 0x001FF628 File Offset: 0x001FD828
|
|
// (set) Token: 0x0600901F RID: 36895 RVA: 0x001FF63C File Offset: 0x001FD83C
|
|
[Token(Token = "0x1700174A")]
|
|
public override long Position
|
|
{
|
|
[Token(Token = "0x600901E")]
|
|
[Address(RVA = "0x1E74600", Offset = "0x1E73000", VA = "0x181E74600", Slot = "11")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600901E)
|
|
|
|
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 = "0x600901F")]
|
|
[Address(RVA = "0x1E74650", Offset = "0x1E73050", VA = "0x181E74650", Slot = "12")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600901F)
|
|
|
|
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: 0x06009020 RID: 36896 RVA: 0x001FF650 File Offset: 0x001FD850
|
|
[Token(Token = "0x6009020")]
|
|
[Address(RVA = "0x1E74240", Offset = "0x1E72C40", VA = "0x181E74240", Slot = "33")]
|
|
public virtual int Read(byte[] buf)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009021 RID: 36897 RVA: 0x001FF664 File Offset: 0x001FD864
|
|
[Token(Token = "0x6009021")]
|
|
[Address(RVA = "0x1E74170", Offset = "0x1E72B70", VA = "0x181E74170", 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: 0x06009022 RID: 36898 RVA: 0x001FF6A8 File Offset: 0x001FD8A8
|
|
[Token(Token = "0x6009022")]
|
|
[Address(RVA = "0x1E740A0", Offset = "0x1E72AA0", VA = "0x181E740A0", 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: 0x06009023 RID: 36899 RVA: 0x001FF6F4 File Offset: 0x001FD8F4
|
|
[Token(Token = "0x6009023")]
|
|
[Address(RVA = "0x1E74280", Offset = "0x1E72C80", VA = "0x181E74280", Slot = "25")]
|
|
public override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009023)
|
|
|
|
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: 0x06009024 RID: 36900 RVA: 0x001FF708 File Offset: 0x001FD908
|
|
[Token(Token = "0x6009024")]
|
|
[Address(RVA = "0x1E742D0", Offset = "0x1E72CD0", VA = "0x181E742D0", Slot = "26")]
|
|
public override void SetLength(long value)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009024)
|
|
|
|
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: 0x06009025 RID: 36901 RVA: 0x001FF71C File Offset: 0x001FD91C
|
|
[Token(Token = "0x6009025")]
|
|
[Address(RVA = "0x1E74320", Offset = "0x1E72D20", VA = "0x181E74320", 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: 0x06009026 RID: 36902 RVA: 0x001FF758 File Offset: 0x001FD958
|
|
[Token(Token = "0x6009026")]
|
|
[Address(RVA = "0x1E74460", Offset = "0x1E72E60", VA = "0x181E74460", 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: 0x06009027 RID: 36903 RVA: 0x001FF784 File Offset: 0x001FD984
|
|
[Token(Token = "0x6009027")]
|
|
[Address(RVA = "0x1E744A0", Offset = "0x1E72EA0", VA = "0x181E744A0", Slot = "29")]
|
|
public override void Write(byte[] buf, int off, int len)
|
|
{
|
|
this.buffer.AddData(buf, off, len);
|
|
}
|
|
|
|
// Token: 0x06009028 RID: 36904 RVA: 0x001FF7A8 File Offset: 0x001FD9A8
|
|
[Token(Token = "0x6009028")]
|
|
[Address(RVA = "0x1E743C0", Offset = "0x1E72DC0", VA = "0x181E743C0", 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: 0x04005EC2 RID: 24258
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4005EC2")]
|
|
private readonly ByteQueue buffer;
|
|
}
|
|
}
|