Lines Matching refs:ArrayRef
12 let array = ArrayRef::new(&mut store, &pre, &Val::I32(0), 0)?; in array_new_empty()
25 let array = ArrayRef::new(&mut store, &pre, &Val::I32(99), 3)?; in array_new_with_elems()
48 assert!(ArrayRef::new(&mut store, &pre, &anyref.into(), 3).is_err()); in array_new_unrooted_initial_elem()
67 ArrayRef::new(&mut store1, &pre, &anyref.into(), 3).unwrap(); in array_new_cross_store_initial_elem()
82 ArrayRef::new(&mut store1, &pre, &Val::I32(0), 3).unwrap(); in array_new_cross_store_pre()
93 let array = ArrayRef::new_fixed(&mut store, &pre, &[])?; in array_new_fixed_empty()
106 let array = ArrayRef::new_fixed( in array_new_fixed_with_elems()
133 assert!(ArrayRef::new_fixed(&mut store, &pre, &[anyref.into()]).is_err()); in array_new_fixed_unrooted_initial_elem()
152 ArrayRef::new_fixed(&mut store1, &pre, &[anyref.into()]).unwrap(); in array_new_fixed_cross_store_initial_elem()
167 ArrayRef::new_fixed(&mut store1, &pre, &[Val::I32(0)]).unwrap(); in array_new_fixed_cross_store_pre()
179 let a0 = ArrayRef::new_fixed(&mut store, &pre, &[])?; in anyref_as_array()
203 let array = ArrayRef::new_fixed(&mut store, &pre, &[])?; in array_len_empty()
219 let array = ArrayRef::new_fixed( in array_len_non_empty()
239 let array = ArrayRef::new_fixed( in array_get_in_bounds()
262 let array = ArrayRef::new_fixed( in array_get_out_of_bounds()
286 ArrayRef::new_fixed(&mut scope, &pre, &[Val::I32(11)])? in array_get_on_unrooted()
305 let array = ArrayRef::new_fixed(&mut store1, &pre, &[Val::I32(11)]).unwrap(); in array_get_wrong_store()
321 let array = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(11)])?; in array_set_in_bounds()
340 let array = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(11)])?; in array_set_out_of_bounds()
360 ArrayRef::new_fixed(&mut scope, &pre, &[Val::I32(11)])? in array_set_on_unrooted()
377 let array = ArrayRef::new_fixed(&mut store, &pre, &[Val::AnyRef(None)])?; in array_set_given_unrooted()
400 let array = ArrayRef::new_fixed(&mut store1, &pre, &[Val::AnyRef(None)]).unwrap(); in array_set_cross_store_value()
418 let array = ArrayRef::new_fixed( in array_set_immutable_elems()
441 let array = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(11)])?; in array_set_wrong_field_type()
455 let a = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(11)])?; in array_ty()
470 ArrayRef::new_fixed(&mut scope, &pre, &[Val::I32(11)])? in array_ty_unrooted()
484 let array = ArrayRef::new_fixed(&mut store, &pre, &[])?; in array_elems_empty()
499 let array = ArrayRef::new_fixed( in array_elems_non_empty()
523 ArrayRef::new_fixed(&mut scope, &pre, &[Val::I32(11)])? in array_elems_unrooted()
568 let a = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(42)])?; in passing_arrays_through_wasm_with_untyped_calls()
607 |mut caller: Caller<()>, a: Rooted<ArrayRef>| -> Result<Rooted<ArrayRef>> { in passing_arrays_through_wasm_with_typed_calls()
615 let run = instance.get_typed_func::<Rooted<ArrayRef>, Rooted<ArrayRef>>(&mut store, "run")?; in passing_arrays_through_wasm_with_typed_calls()
618 let a = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(42)])?; in passing_arrays_through_wasm_with_typed_calls()
655 let a0 = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(42)])?; in host_sets_array_global()
667 let f = instance.get_typed_func::<(), Option<Rooted<ArrayRef>>>(&mut store, "f")?; in host_sets_array_global()
703 let a0 = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(42)])?; in wasm_sets_array_global()
719 let f = instance.get_typed_func::<(), Option<Rooted<ArrayRef>>>(&mut store, "get")?; in wasm_sets_array_global()
755 let a0 = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(42)])?; in host_sets_array_in_table()
767 let f = instance.get_typed_func::<(), Option<Rooted<ArrayRef>>>(&mut store, "f")?; in host_sets_array_in_table()
805 let a0 = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(42)])?; in wasm_sets_array_in_table()
821 let f = instance.get_typed_func::<(), Option<Rooted<ArrayRef>>>(&mut store, "get")?; in wasm_sets_array_in_table()
866 let a0 = ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(42)])?; in instantiate_with_array_global()