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

Method as_slice

cranelift/codegen/src/ir/constant.rs:85–87  ·  view source on GitHub ↗

Return the data as a slice.

(&self)

Source from the content-addressed store, hash-verified

83
84 /// Return the data as a slice.
85 pub fn as_slice(&self) -> &[u8] {
86 self.0.as_slice()
87 }
88
89 /// Convert the data to a vector.
90 pub fn into_vec(self) -> Vec<u8> {

Callers 15

fixup_inst_that_returnsFunction · 0.45
map_value_listMethod · 0.45
map_jump_tableMethod · 0.45
write_operandsFunction · 0.45
visit_block_succsFunction · 0.45
try_fromMethod · 0.45
replace_with_aliasesMethod · 0.45
inst_resultsMethod · 0.45
paramsMethod · 0.45
argsMethod · 0.45
branch_destinationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected