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
Helpers.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Security.Cryptography
;
3
using
Cpp2IlInjected
;
4
5
namespace
Internal.Cryptography
6
{
7
// Token: 0x02000066 RID: 102
8
internal
static
class
Helpers
9
{
10
// Token: 0x0600023D RID: 573 RVA: 0x000083AC File Offset: 0x000065AC
11
public
static
byte
[]
CloneByteArray
(
this
byte
[]
src
)
12
{
13
object
obj
;
14
while
(
obj
==
null
||
obj
!=
null
)
15
{
16
}
17
throw
new
InvalidCastException
();
18
}
19
20
// Token: 0x0600023E RID: 574 RVA: 0x000083C8 File Offset: 0x000065C8
21
public
static
byte
[]
GenerateRandom
(
int
count
)
22
{
23
RandomNumberGenerator
randomNumberGenerator
=
RandomNumberGenerator
.
Create
();
24
long
num = 0
L
;
25
if
(
randomNumberGenerator
!=
null
)
26
{
27
}
28
if
(num == 0
L
)
29
{
30
}
31
throw
new
OutOfMemoryException
();
32
}
33
34
// Token: 0x0600023F RID: 575 RVA: 0x00008404 File Offset: 0x00006604
35
public
static
void
WriteInt
(uint i,
byte
[] arr,
int
offset
)
36
{
37
}
38
39
// Token: 0x06000240 RID: 576 RVA: 0x00008414 File Offset: 0x00006614
40
public
static
char
[]
ToHexArrayUpper
(
this
byte
[] bytes)
41
{
42
}
43
44
// Token: 0x06000241 RID: 577 RVA: 0x00008424 File Offset: 0x00006624
45
public
static
string
ToHexStringUpper
(
this
byte
[] bytes)
46
{
47
char
[]
array
;
48
return
string
.Ctor(
array
);
49
}
50
51
// Token: 0x06000242 RID: 578 RVA: 0x0000207A File Offset: 0x0000027A
52
private
static
char
NibbleToHex
(
byte
b)
53
{
54
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
55
}
56
}
57
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
Internal.Cryptography.Helpers.NibbleToHex
static char NibbleToHex(byte b)
Definition
Helpers.cs:52
Internal.Cryptography.Helpers.WriteInt
static void WriteInt(uint i, byte[] arr, int offset)
Definition
Helpers.cs:35
Internal.Cryptography.Helpers.GenerateRandom
static byte[] GenerateRandom(int count)
Definition
Helpers.cs:21
Internal.Cryptography.Helpers.ToHexStringUpper
static string ToHexStringUpper(this byte[] bytes)
Definition
Helpers.cs:45
Internal.Cryptography.Helpers.CloneByteArray
static byte[] CloneByteArray(this byte[] src)
Definition
Helpers.cs:11
Internal.Cryptography.Helpers.ToHexArrayUpper
static char[] ToHexArrayUpper(this byte[] bytes)
Definition
Helpers.cs:40
Internal.Cryptography.Helpers
Definition
Helpers.cs:9
System.InvalidCastException
Definition
InvalidCastException.cs:9
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Security.Cryptography.RandomNumberGenerator.Create
static RandomNumberGenerator Create()
Definition
RandomNumberGenerator.cs:17
System.Security.Cryptography.RandomNumberGenerator
Definition
RandomNumberGenerator.cs:10
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Internal.Cryptography
Definition
Helpers.cs:6
System.Security.Cryptography
Definition
Aes.cs:5
System.ExceptionArgument.offset
@ offset
System.ExceptionArgument.obj
@ obj
System.ExceptionArgument.count
@ count
System.ExceptionArgument.array
@ array
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
source
mscorlib
Internal
Cryptography
Helpers.cs
Generated by
1.10.0