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
PinnedBufferMemoryStream.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
4
namespace
System.IO
5
{
6
// Token: 0x0200053C RID: 1340
7
internal
sealed
class
PinnedBufferMemoryStream
:
UnmanagedMemoryStream
8
{
9
// Token: 0x06002784 RID: 10116 RVA: 0x00055A38 File Offset: 0x00053C38
10
internal
PinnedBufferMemoryStream
(
byte
[]
array
)
11
{
12
this._array
=
array
;
13
GCHandle
gchandle
=
GCHandle
.
Alloc
(
array
,
GCHandleType
.Pinned);
14
this._pinningHandle
=
gchandle
;
15
Span
span
;
16
!0
reference
=
MemoryMarshal
.GetReference(
span
);
17
}
18
19
// Token: 0x06002785 RID: 10117 RVA: 0x00055A68 File Offset: 0x00053C68
20
public
override
int
Read
(
Span<byte>
buffer)
21
{
22
return
base
.ReadCore(buffer);
23
}
24
25
// Token: 0x06002786 RID: 10118 RVA: 0x00055A7C File Offset: 0x00053C7C
26
public
override
void
Write
(
ReadOnlySpan<byte>
buffer)
27
{
28
base
.WriteCore(buffer);
29
}
30
31
// Token: 0x06002787 RID: 10119 RVA: 0x00055A90 File Offset: 0x00053C90
32
protected
override
void
Finalize
()
33
{
34
base
.Finalize();
35
}
36
37
// Token: 0x06002788 RID: 10120 RVA: 0x00055AC4 File Offset: 0x00053CC4
38
protected
override
void
Dispose
(
bool
disposing
)
39
{
40
}
41
42
// Token: 0x0400158E RID: 5518
43
private
byte
[]
_array
;
44
45
// Token: 0x0400158F RID: 5519
46
private
GCHandle
_pinningHandle
;
47
}
48
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.IO.PinnedBufferMemoryStream._array
byte[] _array
Definition
PinnedBufferMemoryStream.cs:43
System.IO.PinnedBufferMemoryStream.Read
override int Read(Span< byte > buffer)
Definition
PinnedBufferMemoryStream.cs:20
System.IO.PinnedBufferMemoryStream.Finalize
override void Finalize()
Definition
PinnedBufferMemoryStream.cs:32
System.IO.PinnedBufferMemoryStream.Dispose
override void Dispose(bool disposing)
Definition
PinnedBufferMemoryStream.cs:38
System.IO.PinnedBufferMemoryStream._pinningHandle
GCHandle _pinningHandle
Definition
PinnedBufferMemoryStream.cs:46
System.IO.PinnedBufferMemoryStream.Write
override void Write(ReadOnlySpan< byte > buffer)
Definition
PinnedBufferMemoryStream.cs:26
System.IO.PinnedBufferMemoryStream.PinnedBufferMemoryStream
PinnedBufferMemoryStream(byte[] array)
Definition
PinnedBufferMemoryStream.cs:10
System.IO.PinnedBufferMemoryStream
Definition
PinnedBufferMemoryStream.cs:8
System.IO.UnmanagedMemoryStream
Definition
UnmanagedMemoryStream.cs:11
System.Runtime.InteropServices.MemoryMarshal
Definition
MemoryMarshal.cs:8
System.IO
Definition
__Error.cs:4
System.Runtime.InteropServices.GCHandleType
GCHandleType
Definition
GCHandleType.cs:7
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.ExceptionArgument.array
@ array
System
Definition
__ComObject.cs:4
System.ReadOnlySpan
Definition
ReadOnlySpan.cs:15
System.Runtime.InteropServices.GCHandle.Alloc
static GCHandle Alloc(object value)
Definition
GCHandle.cs:97
System.Runtime.InteropServices.GCHandle
Definition
GCHandle.cs:9
System.Span
Definition
Span.cs:15
source
mscorlib
System
IO
PinnedBufferMemoryStream.cs
Generated by
1.10.0