Lines Matching refs:iovecs
58 let mut iovecs = [ in vectored_read() localVariable
65 assert_eq!(2, buf.chunks_vectored(&mut iovecs)); in vectored_read()
66 assert_eq!(iovecs[0][..], b"hello"[..]); in vectored_read()
67 assert_eq!(iovecs[1][..], b"world"[..]); in vectored_read()
68 assert_eq!(iovecs[2][..], b""[..]); in vectored_read()
69 assert_eq!(iovecs[3][..], b""[..]); in vectored_read()
79 let mut iovecs = [ in vectored_read() localVariable
86 assert_eq!(2, buf.chunks_vectored(&mut iovecs)); in vectored_read()
87 assert_eq!(iovecs[0][..], b"llo"[..]); in vectored_read()
88 assert_eq!(iovecs[1][..], b"world"[..]); in vectored_read()
89 assert_eq!(iovecs[2][..], b""[..]); in vectored_read()
90 assert_eq!(iovecs[3][..], b""[..]); in vectored_read()
100 let mut iovecs = [ in vectored_read() localVariable
107 assert_eq!(1, buf.chunks_vectored(&mut iovecs)); in vectored_read()
108 assert_eq!(iovecs[0][..], b"world"[..]); in vectored_read()
109 assert_eq!(iovecs[1][..], b""[..]); in vectored_read()
110 assert_eq!(iovecs[2][..], b""[..]); in vectored_read()
111 assert_eq!(iovecs[3][..], b""[..]); in vectored_read()
121 let mut iovecs = [ in vectored_read() localVariable
128 assert_eq!(1, buf.chunks_vectored(&mut iovecs)); in vectored_read()
129 assert_eq!(iovecs[0][..], b"ld"[..]); in vectored_read()
130 assert_eq!(iovecs[1][..], b""[..]); in vectored_read()
131 assert_eq!(iovecs[2][..], b""[..]); in vectored_read()
132 assert_eq!(iovecs[3][..], b""[..]); in vectored_read()