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

Method write_to_slice_be

cranelift/codegen/src/data_value.rs:181–183  ·  view source on GitHub ↗

Write a [DataValue] to a slice in big-endian byte order. # Panics: Panics if the slice does not have enough space to accommodate the [DataValue]

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

Source from the content-addressed store, hash-verified

179 ///
180 /// Panics if the slice does not have enough space to accommodate the [DataValue]
181 pub fn write_to_slice_be(&self, dst: &mut [u8]) {
182 self.clone().to_be().write_to_slice_ne(dst);
183 }
184
185 /// Write a [DataValue] to a slice in little-endian byte order.
186 ///

Callers 1

checked_storeMethod · 0.80

Calls 3

write_to_slice_neMethod · 0.80
to_beMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected