(kind: SectionKind)
| 49 | |
| 50 | impl SectionData { |
| 51 | pub fn new(kind: SectionKind) -> Self { |
| 52 | Self { |
| 53 | kind: Some(kind), |
| 54 | bytes: Vec::new(), |
| 55 | symbols: Vec::new(), |
| 56 | globals: Vec::new(), |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | pub fn current_offset(&self) -> u64 { |
| 61 | self.bytes.len() as u64 |
nothing calls this directly
no outgoing calls
no test coverage detected