MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / write_offset

Method write_offset

crates/cranelift/src/debug/write_debuginfo.rs:110–120  ·  view source on GitHub ↗
(&mut self, val: usize, section: SectionId, size: u8)

Source from the content-addressed store, hash-verified

108 }
109
110 fn write_offset(&mut self, val: usize, section: SectionId, size: u8) -> WriteResult<()> {
111 let offset = self.len() as u32;
112 let target = DwarfSectionRelocTarget::Section(section.name());
113 self.relocs.push(DwarfSectionReloc {
114 target,
115 offset,
116 size,
117 addend: val as i32,
118 });
119 self.write_udata(val as u64, size)
120 }
121
122 fn write_offset_at(
123 &mut self,

Callers

nothing calls this directly

Calls 3

lenMethod · 0.45
nameMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected