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

Method append

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

Add new bytes to the constant data.

(mut self, bytes: impl IntoBytes)

Source from the content-addressed store, hash-verified

98
99 /// Add new bytes to the constant data.
100 pub fn append(mut self, bytes: impl IntoBytes) -> Self {
101 let mut to_add = bytes.into_bytes();
102 self.0.append(&mut to_add);
103 self
104 }
105
106 /// Expand the size of the constant data to `expected_size` number of bytes by adding zeroes
107 /// in the high-order byte slots.

Callers 6

parse_multilineFunction · 0.45
checkFunction · 0.45
from_filesFunction · 0.45
create_envsFunction · 0.45
add_to_constant_dataFunction · 0.45

Calls 1

into_bytesMethod · 0.80

Tested by 1

add_to_constant_dataFunction · 0.36