terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
AsyncStreamReader.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.IO
;
3
using
System.Text
;
4
using
System.Threading
;
5
6
namespace
System.Diagnostics
7
{
8
// Token: 0x020000D5 RID: 213
9
internal
class
AsyncStreamReader
10
{
11
// Token: 0x060004D8 RID: 1240 RVA: 0x00013D78 File Offset: 0x00011F78
12
public
virtual
void
Close
()
13
{
14
}
15
16
// Token: 0x060004D9 RID: 1241 RVA: 0x00013D88 File Offset: 0x00011F88
17
protected
virtual
void
Dispose
(
bool
disposing
)
18
{
19
object
obj
= this.
syncObject
;
20
Monitor
.
Enter
(
obj
,
disposing
);
21
if
(this.
stream
!=
null
)
22
{
23
if
(this.
asyncReadResult
!=
null
)
24
{
25
return
;
26
}
27
Stream
stream
= this.
stream
;
28
}
29
if
(this.
stream
!=
null
)
30
{
31
}
32
if
(this.
eofEvent
!=
null
)
33
{
34
return
;
35
}
36
long
num = 0
L
;
37
Monitor
.
Exit
(
obj
);
38
if
(num == 0
L
)
39
{
40
return
;
41
}
42
throw
new
OutOfMemoryException
();
43
}
44
45
// Token: 0x060004DA RID: 1242 RVA: 0x00013E20 File Offset: 0x00012020
46
internal
void
CancelOperation
()
47
{
48
this.cancelOperation
=
true
;
49
}
50
51
// Token: 0x060004DB RID: 1243 RVA: 0x00013E34 File Offset: 0x00012034
52
internal
void
WaitUtilEOF
()
53
{
54
if
(this.
eofEvent
!=
null
)
55
{
56
ManualResetEvent
manualResetEvent
= this.
eofEvent
;
57
}
58
}
59
60
// Token: 0x040003C0 RID: 960
61
private
Stream
stream
;
62
63
// Token: 0x040003C1 RID: 961
64
private
Encoding
encoding
;
65
66
// Token: 0x040003C2 RID: 962
67
private
Decoder
decoder
;
68
69
// Token: 0x040003C3 RID: 963
70
private
byte
[]
byteBuffer
;
71
72
// Token: 0x040003C4 RID: 964
73
private
char
[]
charBuffer
;
74
75
// Token: 0x040003C5 RID: 965
76
private
bool
cancelOperation
;
77
78
// Token: 0x040003C6 RID: 966
79
private
ManualResetEvent
eofEvent
;
80
81
// Token: 0x040003C7 RID: 967
82
private
object
syncObject
;
83
84
// Token: 0x040003C8 RID: 968
85
private
IAsyncResult
asyncReadResult
;
86
}
87
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Diagnostics.AsyncStreamReader.charBuffer
char[] charBuffer
Definition
AsyncStreamReader.cs:73
System.Diagnostics.AsyncStreamReader.eofEvent
ManualResetEvent eofEvent
Definition
AsyncStreamReader.cs:79
System.Diagnostics.AsyncStreamReader.decoder
Decoder decoder
Definition
AsyncStreamReader.cs:67
System.Diagnostics.AsyncStreamReader.syncObject
object syncObject
Definition
AsyncStreamReader.cs:82
System.Diagnostics.AsyncStreamReader.cancelOperation
bool cancelOperation
Definition
AsyncStreamReader.cs:76
System.Diagnostics.AsyncStreamReader.asyncReadResult
IAsyncResult asyncReadResult
Definition
AsyncStreamReader.cs:85
System.Diagnostics.AsyncStreamReader.Dispose
virtual void Dispose(bool disposing)
Definition
AsyncStreamReader.cs:17
System.Diagnostics.AsyncStreamReader.CancelOperation
void CancelOperation()
Definition
AsyncStreamReader.cs:46
System.Diagnostics.AsyncStreamReader.WaitUtilEOF
void WaitUtilEOF()
Definition
AsyncStreamReader.cs:52
System.Diagnostics.AsyncStreamReader.Close
virtual void Close()
Definition
AsyncStreamReader.cs:12
System.Diagnostics.AsyncStreamReader.stream
Stream stream
Definition
AsyncStreamReader.cs:61
System.Diagnostics.AsyncStreamReader.encoding
Encoding encoding
Definition
AsyncStreamReader.cs:64
System.Diagnostics.AsyncStreamReader.byteBuffer
byte[] byteBuffer
Definition
AsyncStreamReader.cs:70
System.Diagnostics.AsyncStreamReader
Definition
AsyncStreamReader.cs:10
System.IO.Stream
Definition
Stream.cs:15
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Text.Decoder
Definition
Decoder.cs:10
System.Text.Encoding
Definition
Encoding.cs:15
System.Threading.ManualResetEvent
Definition
ManualResetEvent.cs:7
System.Threading.Monitor.Exit
static void Exit(object obj)
Definition
Monitor.cs:47
System.Threading.Monitor.Enter
static void Enter(object obj)
Definition
Monitor.cs:11
System.Threading.Monitor
Definition
Monitor.cs:9
System.IAsyncResult
Definition
IAsyncResult.cs:8
System.Diagnostics
Definition
ConditionalAttribute.cs:5
System.IO
Definition
__Error.cs:4
System.Text
Definition
ASCIIEncoding.cs:7
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System.ExceptionArgument.obj
@ obj
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
source
System
Diagnostics
AsyncStreamReader.cs
Generated by
1.10.0