-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataType.cs
169 lines (159 loc) · 4.96 KB
/
DataType.cs
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
using Newtonsoft.Json;
namespace Unpde {
/// <summary>
/// 数据类型定义
/// </summary>
public static class DataType {
/// <summary>
/// 170数据块结构
/// </summary>
public class Table170 {
/// <summary>
/// 块大小
/// </summary>
[JsonProperty("size")]
public required uint Size { get; set; }
/// <summary>
/// 块在PDE文件中的地址
/// </summary>
[JsonProperty("offset")]
public required uint Offset { get; set; }
}
/// <summary>
/// 170数据块结构日志版
/// </summary>
public class Table170LogVer {
/// <summary>
/// 块大小
/// </summary>
[JsonProperty("size")]
public required string Size { get; set; }
/// <summary>
/// 块在PDE文件中的地址
/// </summary>
[JsonProperty("offset")]
public required string Offset { get; set; }
}
/// <summary>
/// 文件偏移信息数据结构
/// </summary>
public class HexOffsetInfo {
/// <summary>
/// 1 文件,2 目录
/// </summary>
public required uint Type { get; set; }
/// <summary>
/// 文件名或目录名
/// </summary>
public required string Name { get; set; }
/// <summary>
/// 在PDE文件中的实际偏移值
/// </summary>
public required uint Offset { get; set; }
/// <summary>
/// 大小
/// </summary>
public required uint Size { get; set; }
/// <summary>
/// 原始偏移值
/// </summary>
public required uint OOffset { get; set; }
}
/// <summary>
/// 目录数据结构
/// </summary>
public class DirStr {
/// <summary>
/// 上级目录
/// </summary>
public required string UpDir { get; set; }
/// <summary>
/// 当前目录
/// </summary>
public required string NowDir { get; set; }
}
/// <summary>
/// OffsetJson数据结构
/// </summary>
public class OffsetJsonStr {
/// <summary>
/// 块大小
/// </summary>
[JsonProperty("size")]
public required List<uint> Size { get; set; }
/// <summary>
/// 块在PDE文件中的地址
/// </summary>
[JsonProperty("offset")]
public required uint Offset { get; set; }
}
/// <summary>
/// GetByteOfPde() 返回的数据结构
/// </summary>
public class GetOffsetStr {
/// <summary>
/// 实际获取到的块大小
/// </summary>
public required uint Size { get; set; }
/// <summary>
/// 获取到的Byte[]
/// </summary>
public required byte[] Byte { get; set; }
}
/// <summary>
/// PDE文件名结构
/// </summary>
public class PdeNames {
/// <summary>
/// 文件名
/// </summary>
public required string Name { get; set; }
/// <summary>
/// 文件全名
/// </summary>
public required string FullName { get; set; }
}
/// <summary>
/// 解码后的JSON数据目录结构
/// </summary>
public class DecodedDirJson {
/// <summary>
/// 文件或文件夹类型
/// </summary>
public required int Type { get; set; }
/// <summary>
/// 文件或文件夹名称
/// </summary>
public required string Name { get; set; }
/// <summary>
/// 数据块在PDE文件中的偏移值
/// </summary>
public required string BOffset { get; set; }
/// <summary>
/// 原始偏移值
/// </summary>
public required string OOffset { get; set; }
/// <summary>
/// 真实偏移值
/// </summary>
public required string Offset { get; set; }
/// <summary>
/// 大小
/// </summary>
public required string Size { get; set; }
}
/// <summary>
/// 未解码的目录结构
/// </summary>
public class UnDecodedDir {
/// <summary>
/// 文件或文件夹类型
/// </summary>
public required long OffSet { get; set; }
/// <summary>
/// 大小
/// </summary>
public required long Size { get; set; }
}
}
}