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

Method write_to_slice_le

cranelift/codegen/src/data_value.rs:190–192  ·  view source on GitHub ↗

Write a [DataValue] to a slice in little-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

188 ///
189 /// Panics if the slice does not have enough space to accommodate the [DataValue]
190 pub fn write_to_slice_le(&self, dst: &mut [u8]) {
191 self.clone().to_le().write_to_slice_ne(dst);
192 }
193
194 /// Read a [DataValue] from a slice using a given [Type] with native-endian byte order.
195 ///

Callers 1

checked_storeMethod · 0.80

Calls 3

write_to_slice_neMethod · 0.80
to_leMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected