MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / new

Method new

crates/asm-to-binary/src/assembler/section.rs:51–58  ·  view source on GitHub ↗
(kind: SectionKind)

Source from the content-addressed store, hash-verified

49
50impl 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected