| /wasmtime-44.0.1/fuzz/fuzz_targets/ |
| H A D | exception_ops.rs | 6 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 D | gc_ops.rs | 6 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 D | types_impl.rs | 51 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 D | http_impl.rs | 51 types::Method::Other(m) => match hyper::Method::from_bytes(m.as_bytes()) { in handle()
|
| H A D | types.rs | 89 Method::Other(s) => http::Method::from_bytes(s.as_bytes()), in try_into()
|
| /wasmtime-44.0.1/winch/codegen/src/codegen/ |
| H A D | env.rs | 256 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 D | mod.rs | 462 let sig_size = OperandSize::from_bytes(sig_index_bytes); in emit_typecheck_funcref()
|
| /wasmtime-44.0.1/cranelift/codegen/src/ |
| H A D | incremental_cache.rs | 231 match postcard::from_bytes::<CachedFunc>(bytes) { in try_finish_recompile()
|
| /wasmtime-44.0.1/crates/environ/src/collections/ |
| H A D | secondary_map.rs | 290 let map2: TrySecondaryMap<K, u32> = postcard::from_bytes(&bytes)?; in serialize_deserialize()
|
| /wasmtime-44.0.1/crates/cache/src/ |
| H A D | lib.rs | 170 |_state, data| postcard::from_bytes(&data).ok(), in get_data()
|
| /wasmtime-44.0.1/crates/component-macro/src/ |
| H A D | component.rs | 563 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 D | string_pool.rs | 366 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 D | args.rs | 1030 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 D | component.rs | 416 None => postcard::from_bytes(code_memory.wasmtime_info())?, in from_parts()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | module.rs | 510 None => postcard::from_bytes(code_memory.wasmtime_info())?, in from_parts()
|
| /wasmtime-44.0.1/crates/wasi-http/tests/all/ |
| H A D | p2.rs | 642 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 D | serialization.rs | 127 postcard::from_bytes::<Metadata<'_>>(data)?.check_compatible(engine) in check_compatible()
|
| /wasmtime-44.0.1/winch/codegen/src/ |
| H A D | masm.rs | 1073 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 D | types.rs | 135 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 D | masm.rs | 434 OperandSize::from_bytes(<Self::ABI>::word_bytes()), in zero()
|