Lines Matching refs:vec
2 use alloc::{boxed::Box, sync::Arc, vec::Vec};
26 … pub static ref SOCKET_SET: SpinLock<SocketSet<'static >> = SpinLock::new(SocketSet::new(vec![]));
134 vec![raw::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
135 vec![0; Self::DEFAULT_TX_BUF_SIZE], in new()
138 vec![raw::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
139 vec![0; Self::DEFAULT_RX_BUF_SIZE], in new()
228 let mut buffer: Vec<u8> = vec![0u8; len + 20]; in write()
308 vec![udp::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
309 vec![0; Self::DEFAULT_TX_BUF_SIZE], in new()
312 vec![udp::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
313 vec![0; Self::DEFAULT_RX_BUF_SIZE], in new()
523 let tx_buffer = tcp::SocketBuffer::new(vec![0; Self::DEFAULT_TX_BUF_SIZE]); in new()
524 let rx_buffer = tcp::SocketBuffer::new(vec![0; Self::DEFAULT_RX_BUF_SIZE]); in new()
774 let rx_buffer = tcp::SocketBuffer::new(vec![0; Self::DEFAULT_RX_BUF_SIZE]); in accept()
775 let tx_buffer = tcp::SocketBuffer::new(vec![0; Self::DEFAULT_TX_BUF_SIZE]); in accept()