NT4JHHKXB7ARESVKFQAQCMFJUEIJDHKCTU4KAMBX7ZWIONJTL3JAC
async fn handshake(
&self,
request: tonic::Request<proto::Empty>,
) -> Result<tonic::Response<proto::PlatformReply>, tonic::Status> {
Ok(proto::PlatformReply {
endianness: if cfg!(target_endian = "big") { 0 } else { 1 },
pointer_width: std::mem::size_of::<usize>() as i32,
arch: match std::env::consts::ARCH {
"x86_64" => 0,
"aarch64" => 1,
_ => unimplemented!(),
},
}
.into())
}