Home
last modified time | relevance | path

Searched refs:to_le (Results 1 – 18 of 18) sorted by relevance

/external/crosvm/data_model/src/
Dendian.rs106 endian_type!(u16, Le16, to_le, from_le);
107 endian_type!(i16, SLe16, to_le, from_le);
108 endian_type!(u32, Le32, to_le, from_le);
109 endian_type!(i32, SLe32, to_le, from_le);
110 endian_type!(u64, Le64, to_le, from_le);
111 endian_type!(i64, SLe64, to_le, from_le);
112 endian_type!(usize, LeSize, to_le, from_le);
113 endian_type!(isize, SLeSize, to_le, from_le);
/external/rust/crates/hashbrown/src/raw/
Dgeneric.rs108 BitMask((cmp.wrapping_sub(repeat(0x01)) & !cmp & repeat(0x80)).to_le()) in match_byte()
118 BitMask((self.0 & (self.0 << 1) & repeat(0x80)).to_le()) in match_empty()
126 BitMask((self.0 & repeat(0x80)).to_le()) in match_empty_or_deleted()
/external/rust/crates/num-traits/src/
Dint.rs295 fn to_le(self) -> Self; in to_le() method
383 fn to_le(self) -> Self {
384 <$T>::to_le(self)
/external/rust/crates/byteorder/src/
Dlib.rs2215 out.to_le() in read_uint()
2226 out.to_le() in read_uint128()
2231 unsafe_write_num_bytes!(u16, 2, n, buf, to_le); in write_u16()
2236 unsafe_write_num_bytes!(u32, 4, n, buf, to_le); in write_u32()
2241 unsafe_write_num_bytes!(u64, 8, n, buf, to_le); in write_u64()
2246 unsafe_write_num_bytes!(u128, 16, n, buf, to_le); in write_u128()
2254 let bytes = *(&n.to_le() as *const u64 as *const [u8; 8]); in write_uint()
2264 let bytes = *(&n.to_le() as *const u128 as *const [u8; 16]); in write_uint128()
2271 unsafe_read_slice!(src, dst, 2, to_le); in read_u16_into()
2276 unsafe_read_slice!(src, dst, 4, to_le); in read_u32_into()
[all …]
/external/flatbuffers/rust/flatbuffers/src/
Dendian_scalar.rs60 Self::to_le(self)
/external/rust/crates/rand/src/
Drng.rs357 *x = x.to_le();
375 *x = Wrapping(x.0.to_le());
/external/rust/crates/ppv-lite86/src/
Dgeneric.rs550 dmap(x, |x| x.to_le()) in unsafe_read_le()
561 let x = dmap(self, |x| x.to_le()); in write_le()
576 qmap(x, |x| x.to_le()) in unsafe_read_le()
587 let x = qmap(self, |x| x.to_le()); in write_le()
/external/rust/crates/rand_core/src/
Dimpls.rs72 let tmp = n.to_le();
/external/flatbuffers/tests/include_test/sub/
Dinclude_test2_generated.rs53 let n = i64::to_le(self as i64); in to_little_endian()
/external/flatbuffers/tests/namespace_test/
Dnamespace_test1_generated.rs52 let n = i8::to_le(self as i8); in to_little_endian()
/external/rust/crates/protobuf/src/
Dcoded_output_stream.rs256 let bytes = unsafe { mem::transmute::<_, [u8; 4]>(value.to_le()) }; in write_raw_little_endian32()
262 let bytes = unsafe { mem::transmute::<_, [u8; 8]>(value.to_le()) }; in write_raw_little_endian64()
Dcoded_input_stream.rs257 Ok(r.to_le()) in read_raw_little_endian32()
268 Ok(r.to_le()) in read_raw_little_endian64()
/external/flatbuffers/samples/
Dmonster_generated.rs48 let n = i8::to_le(self as i8); in to_little_endian()
109 let n = u8::to_le(self as u8); in to_little_endian()
/external/rust/crates/rand/src/distributions/
Dinteger.rs139 vec.to_le()
/external/rust/crates/rand_chacha/src/
Dchacha.rs95 *x = x.to_le();
/external/flatbuffers/tests/
Dmonster_test_generated.rs210 let n = u8::to_le(self as u8); in to_little_endian()
279 let n = i8::to_le(self as i8); in to_little_endian()
345 let n = u8::to_le(self as u8); in to_little_endian()
412 let n = u8::to_le(self as u8); in to_little_endian()
479 let n = u8::to_le(self as u8); in to_little_endian()
/external/rust/crates/half/
DCHANGELOG.md30 - Added `to_le/be/ne_bytes` and `from_le/be/ne_bytes` to both `f16` and `bf16`, which were added to
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs2592 …let x = foo{a: 0x12345678i32.to_le(), _pad0: [0,0], b: 0x1234i16.to_le(), _pad1: [0, 0, 0], c: 0x1… in layout_14_vtable_with_1_struct_of_int8_and_int16_and_int32()