MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / load

Method load

crates/c/src/lib.rs:3118–3131  ·  view source on GitHub ↗
(
        &mut self,
        ty: &str,
        offset: ArchitectureSize,
        operands: &[String],
        results: &mut Vec<String>,
    )

Source from the content-addressed store, hash-verified

3116 }
3117
3118 fn load(
3119 &mut self,
3120 ty: &str,
3121 offset: ArchitectureSize,
3122 operands: &[String],
3123 results: &mut Vec<String>,
3124 ) {
3125 results.push(format!(
3126 "*(({}*) ({} + {}))",
3127 ty,
3128 operands[0],
3129 offset.format(POINTER_SIZE_EXPRESSION)
3130 ));
3131 }
3132
3133 fn load_ext(
3134 &mut self,

Callers 7

getFunction · 0.45
get_scalarMethod · 0.45
callbackMethod · 0.45
opt_handleMethod · 0.45
opt_handleMethod · 0.45
load_extMethod · 0.45
emitMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by 1

get_scalarMethod · 0.36