Searched refs:hello_buf (Results 1 – 2 of 2) sorted by relevance
4 hello_buf[0..BENCHMARK_MAGIC_NUMBER.len()]7 - hello_buf[i] = env!("CARGO_PKG_VERSION_MAJOR").parse().unwrap();8 - hello_buf[i + 1] = env!("CARGO_PKG_VERSION_MINOR").parse().unwrap();9 - hello_buf[i + 2] = env!("CARGO_PKG_VERSION_PATCH").parse().unwrap();10 + hello_buf[i] = 0;11 + hello_buf[i + 1] = 0;12 + hello_buf[i + 2] = 0;14 hello_buf[i..i + 2].clone_from_slice(&PROTOCOL_VERSION.to_be_bytes());
72 let mut hello_buf = [0u8; RUNNER_HELLO_SIZE]; in new() localVariable73 socket.read_exact(&mut hello_buf)?; in new()74 if &hello_buf[0..RUNNER_MAGIC_NUMBER.len()] != RUNNER_MAGIC_NUMBER.as_bytes() { in new()78 let runner_version = [hello_buf[i], hello_buf[i + 1], hello_buf[i + 2]]; in new()83 let mut hello_buf = [0u8; BENCHMARK_HELLO_SIZE]; in new() localVariable84 hello_buf[0..BENCHMARK_MAGIC_NUMBER.len()] in new()87 hello_buf[i] = 0; in new()88 hello_buf[i + 1] = 0; in new()89 hello_buf[i + 2] = 0; in new()91 hello_buf[i..i + 2].clone_from_slice(&PROTOCOL_VERSION.to_be_bytes()); in new()[all …]