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
FileMetadata.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4
5namespace Terraria.IO
6{
7 // Token: 0x02000560 RID: 1376
8 public class FileMetadata
9 {
10 // Token: 0x06003372 RID: 13170 RVA: 0x001FF6C4 File Offset: 0x001FD8C4
11 private FileMetadata()
12 {
13 }
14
15 // Token: 0x06003373 RID: 13171 RVA: 0x001FF6D8 File Offset: 0x001FD8D8
16 public void Write(BinaryWriter writer)
17 {
18 FileType type = this.Type;
19 uint revision = this.Revision;
20 bool isFavorite = this.IsFavorite;
21 int num = true.ToInt();
22 }
23
24 // Token: 0x06003374 RID: 13172 RVA: 0x001FF704 File Offset: 0x001FD904
25 public void IncrementAndWrite(BinaryWriter writer)
26 {
27 uint revision = this.Revision;
28 this.Revision = revision;
29 this.Write(writer);
30 }
31
32 // Token: 0x06003375 RID: 13173 RVA: 0x000021DB File Offset: 0x000003DB
34 {
35 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
36 }
37
38 // Token: 0x06003376 RID: 13174 RVA: 0x001FF728 File Offset: 0x001FD928
39 public static FileMetadata Read(BinaryReader reader, FileType expectedType)
40 {
42 }
43
44 // Token: 0x06003377 RID: 13175 RVA: 0x001FF754 File Offset: 0x001FD954
45 private void Read(BinaryReader reader)
46 {
47 Type type;
48 Array values = Enum.GetValues(type);
49 if (values == null || values != null)
50 {
51 return;
52 }
53 throw new InvalidCastException();
54 }
55
56 // Token: 0x04003C40 RID: 15424
57 public const ulong MAGIC_NUMBER = 27981915666277746UL;
58
59 // Token: 0x04003C41 RID: 15425
60 public const int SIZE = 20;
61
62 // Token: 0x04003C42 RID: 15426
63 public FileType Type;
64
65 // Token: 0x04003C43 RID: 15427
66 public uint Revision;
67
68 // Token: 0x04003C44 RID: 15428
69 public bool IsFavorite;
70 }
71}
class f__AnonymousType0<< Count > j__TPar
static Array GetValues(Type enumType)
Definition Enum.cs:233
void Read(BinaryReader reader)
void Write(BinaryWriter writer)
static FileMetadata Read(BinaryReader reader, FileType expectedType)
void IncrementAndWrite(BinaryWriter writer)
static FileMetadata FromCurrentSettings(FileType type)