Lines Matching refs:buffer
51 let buffer = &mut [0u8; 100]; in test_file_long_write() localVariable
55 buf: buffer.as_mut_ptr(), in test_file_long_write()
56 buf_len: buffer.len(), in test_file_long_write()
61 assert_eq!(nread, buffer.len(), "read first chunk"); in test_file_long_write()
63 buffer, in test_file_long_write()
64 &content[..buffer.len()], in test_file_long_write()
68 let end_cursor = content.len() - buffer.len(); in test_file_long_write()
75 buf: buffer.as_mut_ptr(), in test_file_long_write()
76 buf_len: buffer.len(), in test_file_long_write()
81 assert_eq!(nread, buffer.len(), "read end chunk len"); in test_file_long_write()
82 assert_eq!(buffer, &content[end_cursor..], "contents of end read chunk"); in test_file_long_write()