Lines Matching full:bytes
17 use vm_memory::{Bytes, GuestAddress, GuestMemoryAtomic};
52 // Virtio-queue size in bytes
58 fuzz_target!(|bytes: &[u8]| -> Corpus {
59 if bytes.len() < TAP_INPUT_SIZE + (QUEUE_DATA_SIZE + QUEUE_BYTES_SIZE) * QUEUE_NUM
60 || bytes.len()
87 let tap_input_bytes = &bytes[..TAP_INPUT_SIZE];
88 let queue_data = &bytes[TAP_INPUT_SIZE..TAP_INPUT_SIZE + QUEUE_DATA_SIZE * QUEUE_NUM];
89 let queue_bytes = &bytes[TAP_INPUT_SIZE + QUEUE_DATA_SIZE * QUEUE_NUM
91 let mem_bytes = &bytes[TAP_INPUT_SIZE + (QUEUE_DATA_SIZE + QUEUE_BYTES_SIZE) * QUEUE_NUM..];
93 // Setup the virt queues with the input bytes
104 // Setup the guest memory with the input bytes
170 fn setup_virt_queues(bytes: &[&[u8; QUEUE_DATA_SIZE]], base_addr: u64) -> Vec<Queue> { in setup_virt_queues()
172 for (i, b) in bytes.iter().enumerate() {