Lines Matching defs:data
98 fn on_icalc_remote_request(stub: &dyn ICalc, code: u32, data: &BorrowedMsgParcel,
102 let num1: i32 = data.read().expect("Failed to read num1 in addition operation");
103 let num2: i32 = data.read().expect("Failed to read num2 in addition operation");
109 let num1: i32 = data.read().expect("Failed to read num1 in subtraction operation");
110 let num2: i32 = data.read().expect("Failed to read num1 in subtraction operation");
116 let num1: i32 = data.read().expect("Failed to read num1 in multiplication operation");
117 let num2: i32 = data.read().expect("Failed to read num1 in multiplication operation");
123 let num1: i32 = data.read().expect("Failed to read num1 in division operation");
124 let num2: i32 = data.read().expect("Failed to read num1 in division operation");
157 let mut data = MsgParcel::new().expect("MsgParcel should success");
158 data.write(&num1)?;
159 data.write(&num2)?;
161 &data, false)?;
166 let mut data = MsgParcel::new().expect("MsgParcel should success");
167 data.write(&num1)?;
168 data.write(&num2)?;
170 &data, false)?;
175 let mut data = MsgParcel::new().expect("MsgParcel should success");
176 data.write(&num1)?;
177 data.write(&num2)?;
179 &data, false)?;
184 let mut data = MsgParcel::new().expect("MsgParcel should success");
185 data.write(&num1)?;
186 data.write(&num2)?;
188 &data, false)?;