You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: memory_interop.rs
    path of file: ./repos/swc/crates/swc_plugin_runner/src
    
    the code of the file until where you have to start completion: use swc_common::plugin::serialized::{PluginSerializedBytes, VersionedSerializable};
use swc_plugin_proxy::AllocatedBytesPtr;
use wasmer::{Memory, MemoryView, StoreMut, TypedFun
    
pub fn copy_bytes_into_host(memory: &MemoryView, bytes_ptr: i32, bytes_ptr_len: i32) -> Vec<u8> {
    let ptr: WasmPtr<u8> = WasmPtr::new(bytes_ptr as _);
    let values = ptr
        .slice(memory, bytes_ptr_len as u32)
        .expect("Should able to get a slice from memory view");

    values
        .read_to_vec()
        .expect("Should able to read memory from given ptr")
}