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

Method put_data

cranelift/codegen/src/machinst/buffer.rs:580–584  ·  view source on GitHub ↗

Add a slice of bytes.

(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

578
579 /// Add a slice of bytes.
580 pub fn put_data(&mut self, data: &[u8]) {
581 self.data.extend_from_slice(data);
582
583 // Post-invariant: as for `put1()`.
584 }
585
586 /// Reserve appended space and return a mutable slice referring to it.
587 pub fn get_appended_space(&mut self, len: usize) -> &mut [u8] {

Callers 7

appendMethod · 0.80
emitMethod · 0.80
emitFunction · 0.80
emit_uncompressedMethod · 0.80
emitMethod · 0.80
newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected