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

Function push_u64_le

crates/asm-to-binary/src/assembler/output.rs:193–195  ·  view source on GitHub ↗
(buf: &mut Vec<u8>, v: u64)

Source from the content-addressed store, hash-verified

191 /// Source location covering `addr` as `(file, 1-based line)`: the greatest
192 /// entry not exceeding `addr`; line-0 module-end sentinels read as none.
193 pub fn source_for_addr(&self, addr: u64) -> Option<(&str, u32)> {
194 let idx = match self.line_table.binary_search_by(|e| e.addr.cmp(&addr)) {
195 Ok(i) => i,
196 Err(0) => return None,
197 Err(i) => i - 1,
198 };

Callers 2

to_objectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected