MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / into_vec

Method into_vec

crates/guest-rust/src/rt/async_support/abi_buffer.rs:113–115  ·  view source on GitHub ↗

Converts this `AbiBuffer ` back into a `Vec ` This commit consumes this buffer and yields back unwritten values as a `Vec `. The remaining items in `Vec ` have not yet been written and all written items have been removed from the front of the list. Note that the backing storage of the returned `Vec ` has not changed from whe this buffer was created. Also note that this can be an expen

(mut self)

Source from the content-addressed store, hash-verified

111 /// occurred as this will involve shifting items from the end of the vector
112 /// to the start of the vector.
113 pub fn into_vec(mut self) -> Vec<O::Payload> {
114 self.take_vec()
115 }
116
117 /// Returns the number of items remaining in this buffer.
118 pub fn remaining(&self) -> usize {

Callers 4

blank_ptr_eqFunction · 0.80
op_ptrsFunction · 0.80
dealloc_listsFunction · 0.80
write_allMethod · 0.80

Calls 1

take_vecMethod · 0.80

Tested by 3

blank_ptr_eqFunction · 0.64
op_ptrsFunction · 0.64
dealloc_listsFunction · 0.64