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

Method read_from_slice_be

cranelift/codegen/src/data_value.rs:234–236  ·  view source on GitHub ↗

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

(src: &[u8], ty: Type)

Source from the content-addressed store, hash-verified

232 ///
233 /// Panics if the slice does not have enough space to accommodate the [DataValue]
234 pub fn read_from_slice_be(src: &[u8], ty: Type) -> Self {
235 DataValue::read_from_slice_ne(src, ty).to_be()
236 }
237
238 /// Read a [DataValue] from a slice using a given [Type] in little-endian byte order.
239 ///

Callers

nothing calls this directly

Calls 1

to_beMethod · 0.80

Tested by

no test coverage detected