Lines Matching refs:u64
147 let packet_size: usize = u64::from_be_bytes(length_prefix) in receive_packet()
161 &mut u64::try_from(packet.len()) in send_packet()
330 offset: u64, in fetch() argument
331 size: u64, in fetch() argument
476 remaining: &'a mut u64,
483 pub fn start(self, data_size: u64) -> Result<Uploader<'a>, CommandError> { in start()
494 remaining: &'a mut u64,
966 pub(crate) fn hex_to_u64(s: &str) -> Result<u64, CommandError> { in hex_to_u64() argument
967 Ok(u64::from_str_radix(s.strip_prefix("0x").unwrap_or(s), 16)?) in hex_to_u64()
997 default: Result<u64, CommandError>, in next_arg_u64() argument
998 ) -> Result<u64, CommandError> { in next_arg_u64() argument
1021 u64,
1022 u64,
1076 offset: u64, in fetch() argument
1077 size: u64, in fetch() argument
1143 self.add_input(&(data.len() as u64).to_be_bytes()); in add_length_prefixed_input()
1435 let mut uploader = upload_builder.start(u64::try_from(to_send.len()).unwrap()).unwrap(); in test_upload()
1500 offset: u64, in test_fetch()
1501 size: u64, in test_fetch()
1538 |_: &str, _: u64, _: u64, _: UploadBuilder, _: &mut FastbootUtils| Ok(()); in test_fetch_invalid_args()