-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
50 lines (43 loc) · 1.13 KB
/
index.d.ts
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
export interface SymbolInfo {
index: number,
name: string,
address: number,
kind: string,
}
export interface SectionInfo {
index: number,
address: number,
size: number,
align: number,
file_range?: [number, number],
name: string,
}
export class File {
/**
* Constructor.
* @param buf Node.js Buffer of your object.
*/
constructor(buf: Buffer);
/**
* Equivalent of https://docs.rs/object/0.27.1/object/read/trait.Object.html#tymethod.symbols
*/
symbols(): SymbolInfo[];
/**
* Equivalent of https://docs.rs/object/0.27.1/object/read/trait.Object.html#tymethod.dynamic_symbols
*/
dynamic_symbols(): SymbolInfo[];
/**
* Equivalent of https://docs.rs/object/0.27.1/object/read/struct.File.html#method.format
*/
format(): string;
/**
* Equivalent of https://docs.rs/object/0.27.1/object/read/trait.Object.html#tymethod.section_by_index
* @param index
*/
section_by_index(index: number): SectionInfo;
/**
* Equivalent of https://docs.rs/object/0.27.1/object/read/trait.Object.html#method.section_by_name
* @param index
*/
section_by_name(name: string): SectionInfo;
}