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

Function read_u64

tests/integration/linker.rs:52–63  ·  view source on GitHub ↗
(bytes: &[u8], offset: usize)

Source from the content-addressed store, hash-verified

50}
51
52fn read_u64(bytes: &[u8], offset: usize) -> u64 {
53 u64::from_le_bytes([
54 bytes[offset],
55 bytes[offset + 1],
56 bytes[offset + 2],
57 bytes[offset + 3],
58 bytes[offset + 4],
59 bytes[offset + 5],
60 bytes[offset + 6],
61 bytes[offset + 7],
62 ])
63}
64
65fn read_c_string(bytes: &[u8], offset: u32) -> String {
66 let start = offset as usize;

Callers 3

parse_sectionsFunction · 0.70
parse_symbolsFunction · 0.70

Calls

no outgoing calls

Tested by 1