Lines Matching refs:hello_buf
72 let mut hello_buf = [0u8; RUNNER_HELLO_SIZE]; in new() localVariable
73 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() localVariable
84 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()
93 hello_buf[i..i + 2].clone_from_slice(&PROTOCOL_FORMAT.to_be_bytes()); in new()
95 socket.write_all(&hello_buf)?; in new()