-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
44 lines (40 loc) · 944 Bytes
/
types.ts
File metadata and controls
44 lines (40 loc) · 944 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
39
40
41
42
43
44
export interface FileData {
name: string;
content: ArrayBuffer;
}
export interface FileTypeInfo {
type: string;
subtype?: string;
architecture?: string;
description: string;
}
export interface FileStructureInfo {
sections?: { name: string; size: number; description: string }[];
headers?: { name: string; value: string }[];
architecture?: string;
entryPoint?: string;
imports?: string[];
}
export interface ComparisonResult {
hash1: string;
hash2: string;
sizeMatch: boolean;
differences: number[];
similarity: number;
file1Name: string;
file2Name: string;
file1Size: number;
file2Size: number;
byteValues?: ByteDifference[];
file1Type?: FileTypeInfo;
file2Type?: FileTypeInfo;
file1Structure?: FileStructureInfo;
file2Structure?: FileStructureInfo;
}
export interface ByteDifference {
position: number;
byte1: number | null;
byte2: number | null;
char1: string;
char2: string;
}