Home
last modified time | relevance | path

Searched refs:from_bytes (Results 1 – 20 of 20) sorted by relevance

/wasmtime-44.0.1/fuzz/fuzz_targets/
H A Dexception_ops.rs6 use postcard::{from_bytes, to_slice};
12 let Ok((seed, ops)) = postcard::from_bytes::<(u64, ExceptionOps)>(data) else {
37 let mut tuple: (u64, ExceptionOps) = from_bytes(&data[..size]).ok().unwrap_or_default();
H A Dgc_ops.rs6 use postcard::{from_bytes, to_slice};
12 let Ok((seed, ops)) = postcard::from_bytes::<(u64, GcOps)>(data) else {
37 let mut tuple: (u64, GcOps) = from_bytes(&data[..size]).ok().unwrap_or_default();
/wasmtime-44.0.1/crates/wasi-http/src/p2/
H A Dtypes_impl.rs51 let header = HeaderName::from_bytes(header.as_bytes())?; in from_list()
55 let value = HeaderValue::from_bytes(&value)?; in from_list()
72 let header = match HeaderName::from_bytes(name.as_bytes()) { in get()
92 match HeaderName::from_bytes(name.as_bytes()) { in has()
104 let header = HeaderName::from_bytes(name.as_bytes())?; in set()
112 values.push(HeaderValue::from_bytes(&value)?); in set()
121 let header = HeaderName::from_bytes(name.as_bytes())?; in delete()
138 let header = HeaderName::from_bytes(name.as_bytes())?; in append()
144 let value = HeaderValue::from_bytes(&value)?; in append()
H A Dhttp_impl.rs51 types::Method::Other(m) => match hyper::Method::from_bytes(m.as_bytes()) { in handle()
H A Dtypes.rs89 Method::Other(s) => http::Method::from_bytes(s.as_bytes()), in try_into()
/wasmtime-44.0.1/winch/codegen/src/codegen/
H A Denv.rs256 element_size: OperandSize::from_bytes(self.vmoffsets.ptr.size()), in resolve_table_data()
257 current_elements_size: OperandSize::from_bytes( in resolve_table_data()
H A Dmod.rs462 let sig_size = OperandSize::from_bytes(sig_index_bytes); in emit_typecheck_funcref()
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dincremental_cache.rs231 match postcard::from_bytes::<CachedFunc>(bytes) { in try_finish_recompile()
/wasmtime-44.0.1/crates/environ/src/collections/
H A Dsecondary_map.rs290 let map2: TrySecondaryMap<K, u32> = postcard::from_bytes(&bytes)?; in serialize_deserialize()
/wasmtime-44.0.1/crates/cache/src/
H A Dlib.rs170 |_state, data| postcard::from_bytes(&data).ok(), in get_data()
/wasmtime-44.0.1/crates/component-macro/src/
H A Dcomponent.rs563 let from_bytes = match discriminant_size { in expand_variant() localVariable
599 let discrim = #from_bytes; in expand_variant()
623 let (from_bytes, discrim_ty) = match discriminant_size { in expand_enum()
669 let discrim = #from_bytes; in expand_enum()
/wasmtime-44.0.1/crates/environ/src/
H A Dstring_pool.rs366 let (pool, a2, b2, c2) = postcard::from_bytes::<(StringPool, Atom, Atom, Atom)>(&bytes)?; in roundtrip_serialize_deserialize()
/wasmtime-44.0.1/cranelift/codegen/src/isa/x64/inst/
H A Dargs.rs1030 pub(crate) fn from_bytes(num_bytes: u32) -> Self { in from_bytes() method
1043 Self::from_bytes(ty.lane_type().bytes()) in from_ty()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dcomponent.rs416 None => postcard::from_bytes(code_memory.wasmtime_info())?, in from_parts()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dmodule.rs510 None => postcard::from_bytes(code_memory.wasmtime_info())?, in from_parts()
/wasmtime-44.0.1/crates/wasi-http/tests/all/
H A Dp2.rs642 HeaderName::from_bytes(format!("k{chunk:04}").as_bytes()) in wasi_http_fields_limit_incoming_request()
/wasmtime-44.0.1/crates/wasmtime/src/engine/
H A Dserialization.rs127 postcard::from_bytes::<Metadata<'_>>(data)?.check_compatible(engine) in check_compatible()
/wasmtime-44.0.1/winch/codegen/src/
H A Dmasm.rs1073 pub fn from_bytes(bytes: u8) -> Self { in from_bytes() method
1598 let ptr_size = OperandSize::from_bytes(half_word as u8); in memmove()
/wasmtime-44.0.1/crates/wasi-http/src/p3/host/
H A Dtypes.rs135 http::HeaderValue::from_bytes(value.as_ref()).or(Err(HeaderError::InvalidSyntax)) in parse_header_value()
/wasmtime-44.0.1/winch/codegen/src/isa/x64/
H A Dmasm.rs434 OperandSize::from_bytes(<Self::ABI>::word_bytes()), in zero()