-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayCast.cs
More file actions
38 lines (35 loc) · 835 Bytes
/
ArrayCast.cs
File metadata and controls
38 lines (35 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
// Token: 0x02000002 RID: 2
public class ArrayCast
{
// Token: 0x06000002 RID: 2 RVA: 0x00007854 File Offset: 0x00005A54
public static sbyte[] cast(byte[] data)
{
sbyte[] array = new sbyte[data.Length];
for (int i = 0; i < array.Length; i++)
{
array[i] = (sbyte)data[i];
}
return array;
}
// Token: 0x06000003 RID: 3 RVA: 0x00007888 File Offset: 0x00005A88
public static byte[] cast(sbyte[] data)
{
byte[] array = new byte[data.Length];
for (int i = 0; i < array.Length; i++)
{
array[i] = (byte)data[i];
}
return array;
}
// Token: 0x06000004 RID: 4 RVA: 0x000078BC File Offset: 0x00005ABC
public static char[] ToCharArray(sbyte[] data)
{
char[] array = new char[data.Length];
for (int i = 0; i < array.Length; i++)
{
array[i] = (char)data[i];
}
return array;
}
}