pe_assembler/types/tables/
mod.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct ImportEntry {
6 pub dll_name: String,
8 pub functions: Vec<String>,
10}
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
16pub struct ImportTable {
17 pub entries: Vec<ImportEntry>,
19}
20
21impl ImportTable {
22 pub fn new() -> Self {
23 Self { entries: Vec::new() }
24 }
25}
26
27impl Default for ImportTable {
28 fn default() -> Self {
29 Self::new()
30 }
31}
32
33#[derive(Debug, Clone, Serialize, Deserialize)]
37pub struct ExportTable {
38 pub name: String,
40 pub functions: Vec<String>,
42}
43
44impl ExportTable {
45 pub fn new() -> Self {
46 Self { name: String::new(), functions: Vec::new() }
47 }
48}
49
50impl Default for ExportTable {
51 fn default() -> Self {
52 Self::new()
53 }
54}