/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | nested_vtable.rs | 21 ::std::mem::size_of::<nsISupports>(), in bindgen_test_layout_nsISupports() 54 ::std::mem::size_of::<nsIRunnable>(), in bindgen_test_layout_nsIRunnable() 81 ::std::mem::size_of::<Runnable>(), in bindgen_test_layout_Runnable()
|
H A D | opaque-template-instantiation-namespaced.rs | 42 ::std::mem::size_of::<Foo>(), in bindgen_test_layout_Foo() 75 ::std::mem::size_of::<Bar>(), in bindgen_test_layout_Bar() 108 ::std::mem::size_of::<ContainsInstantiation>(), in bindgen_test_layout_ContainsInstantiation() 151 ::std::mem::size_of::<ContainsOpaqueInstantiation>(), in bindgen_test_layout_ContainsOpaqueInstantiation() 180 ::std::mem::size_of::<root::zoidberg::Template<root::zoidberg::Foo>>( in __bindgen_test_layout_Template_open0_Foo_close0_instantiation()
|
H A D | class_nested.rs | 24 ::std::mem::size_of::<A_B>(), in bindgen_test_layout_A_B() 67 ::std::mem::size_of::<A>(), in bindgen_test_layout_A() 100 ::std::mem::size_of::<A_C>(), in bindgen_test_layout_A_C() 121 ::std::mem::size_of::<A_D<::std::os::raw::c_int>>(), in __bindgen_test_layout_A_D_open0_int_close0_instantiation() 151 ::std::mem::size_of::<D>(), in bindgen_test_layout_D()
|
H A D | union_with_nesting.rs | 32 ::std::mem::size_of::<foo__bindgen_ty_1__bindgen_ty_1>(), in bindgen_test_layout_foo__bindgen_ty_1__bindgen_ty_1() 83 ::std::mem::size_of::<foo__bindgen_ty_1__bindgen_ty_2>(), in bindgen_test_layout_foo__bindgen_ty_1__bindgen_ty_2() 125 ::std::mem::size_of::<foo__bindgen_ty_1>(), in bindgen_test_layout_foo__bindgen_ty_1() 150 ::std::mem::size_of::<foo>(), in bindgen_test_layout_foo()
|
H A D | complex.rs | 25 ::std::mem::size_of::<TestDouble>(), in bindgen_test_layout_TestDouble() 56 ::std::mem::size_of::<TestDoublePtr>(), in bindgen_test_layout_TestDoublePtr() 96 ::std::mem::size_of::<TestFloat>(), in bindgen_test_layout_TestFloat() 127 ::std::mem::size_of::<TestFloatPtr>(), in bindgen_test_layout_TestFloatPtr()
|
H A D | issue-537-repr-packed-n.rs | 22 ::std::mem::size_of::<AlignedToOne>(), in bindgen_test_layout_AlignedToOne() 54 ::std::mem::size_of::<AlignedToTwo>(), in bindgen_test_layout_AlignedToTwo() 89 ::std::mem::size_of::<PackedToOne>(), in bindgen_test_layout_PackedToOne() 132 ::std::mem::size_of::<PackedToTwo>(), in bindgen_test_layout_PackedToTwo()
|
H A D | struct_with_derive_debug.rs | 19 ::std::mem::size_of::<LittleArray>(), in bindgen_test_layout_LittleArray() 50 ::std::mem::size_of::<BigArray>(), in bindgen_test_layout_BigArray() 90 ::std::mem::size_of::<WithLittleArray>(), in bindgen_test_layout_WithLittleArray() 121 ::std::mem::size_of::<WithBigArray>(), in bindgen_test_layout_WithBigArray()
|
H A D | issue-537.rs | 21 ::std::mem::size_of::<AlignedToOne>(), in bindgen_test_layout_AlignedToOne() 54 ::std::mem::size_of::<AlignedToTwo>(), in bindgen_test_layout_AlignedToTwo() 89 ::std::mem::size_of::<PackedToOne>(), in bindgen_test_layout_PackedToOne() 134 ::std::mem::size_of::<PackedToTwo>(), in bindgen_test_layout_PackedToTwo()
|
H A D | allowlist-file.rs | 24 ::std::mem::size_of::<someClass>(), in bindgen_test_layout_someClass() 65 ::std::mem::size_of::<StructWithAllowlistedDefinition>(), in bindgen_test_layout_StructWithAllowlistedDefinition() 105 ::std::mem::size_of::<StructWithAllowlistedFwdDecl>(), in bindgen_test_layout_StructWithAllowlistedFwdDecl() 136 ::std::mem::size_of::<AllowlistMe>(), in bindgen_test_layout_AllowlistMe()
|
H A D | derive-hash-struct-with-pointer.rs | 20 ::std::mem::size_of::<ConstPtrMutObj>(), in bindgen_test_layout_ConstPtrMutObj() 60 ::std::mem::size_of::<MutPtrMutObj>(), in bindgen_test_layout_MutPtrMutObj() 100 ::std::mem::size_of::<MutPtrConstObj>(), in bindgen_test_layout_MutPtrConstObj() 140 ::std::mem::size_of::<ConstPtrConstObj>(), in bindgen_test_layout_ConstPtrConstObj()
|
H A D | derive-hash-template-inst-float.rs | 36 ::std::mem::size_of::<IntStr>(), in bindgen_test_layout_IntStr() 72 ::std::mem::size_of::<FloatStr>(), in bindgen_test_layout_FloatStr() 104 ::std::mem::size_of::<foo<::std::os::raw::c_int>>(), in __bindgen_test_layout_foo_open0_int_close0_instantiation() 123 ::std::mem::size_of::<foo<f32>>(), in __bindgen_test_layout_foo_open0_float_close0_instantiation()
|
H A D | issue-1281.rs | 24 ::std::mem::size_of::<foo>(), in bindgen_test_layout_foo() 45 ::std::mem::size_of::<bar>(), in bindgen_test_layout_bar() 72 ::std::mem::size_of::<baz>(), in bindgen_test_layout_baz()
|
H A D | struct_with_anon_struct_array.rs | 26 ::std::mem::size_of::<foo__bindgen_ty_1>(), in bindgen_test_layout_foo__bindgen_ty_1() 68 ::std::mem::size_of::<foo__bindgen_ty_2>(), in bindgen_test_layout_foo__bindgen_ty_2() 104 ::std::mem::size_of::<foo>(), in bindgen_test_layout_foo()
|
H A D | opaque-template-instantiation.rs | 34 ::std::mem::size_of::<ContainsInstantiation>(), in bindgen_test_layout_ContainsInstantiation() 76 ::std::mem::size_of::<ContainsOpaqueInstantiation>(), in bindgen_test_layout_ContainsOpaqueInstantiation() 99 ::std::mem::size_of::<Template<::std::os::raw::c_char>>(), in __bindgen_test_layout_Template_open0_char_close0_instantiation()
|
H A D | typedef-pointer-overlap.rs | 19 ::std::mem::size_of::<foo>(), in bindgen_test_layout_foo() 51 ::std::mem::size_of::<bar>(), in bindgen_test_layout_bar() 89 ::std::mem::size_of::<cat>(), in bindgen_test_layout_cat()
|
H A D | private.rs | 21 ::std::mem::size_of::<HasPrivate>(), in bindgen_test_layout_HasPrivate() 68 ::std::mem::size_of::<VeryPrivate>(), in bindgen_test_layout_VeryPrivate() 116 ::std::mem::size_of::<ContradictPrivate>(), in bindgen_test_layout_ContradictPrivate()
|
H A D | derive-custom-cli.rs | 19 ::std::mem::size_of::<foo_struct>(), in bindgen_test_layout_foo_struct() 56 ::std::mem::size_of::<foo_union>(), in bindgen_test_layout_foo_union() 96 ::std::mem::size_of::<non_matching>(), in bindgen_test_layout_non_matching()
|
H A D | anon_struct_in_union.rs | 29 ::std::mem::size_of::<s__bindgen_ty_1_inner>(), in bindgen_test_layout_s__bindgen_ty_1_inner() 55 ::std::mem::size_of::<s__bindgen_ty_1>(), in bindgen_test_layout_s__bindgen_ty_1() 90 ::std::mem::size_of::<s>(), in bindgen_test_layout_s()
|
H A D | inherit_multiple_interfaces.rs | 22 ::std::mem::size_of::<A>(), in bindgen_test_layout_A() 60 ::std::mem::size_of::<B>(), in bindgen_test_layout_B() 102 ::std::mem::size_of::<C>(), in bindgen_test_layout_C()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
H A D | write_sockaddr.rs | 7 use core::mem::size_of; 34 size_of::<c::sockaddr_in>() in write_sockaddr_v4() 54 size_of::<c::sockaddr_in6>() in write_sockaddr_v6()
|
/foundation/communication/ipc/interfaces/innerkits/rust/src/parcel/ |
H A D | msg.rs | 777 size += mem::size_of::<i32>(); in parcel_size() 781 size += mem::size_of::<i32>(); in parcel_size() 785 size += mem::size_of::<i32>(); in parcel_size() 789 size += mem::size_of::<i64>(); in parcel_size() 793 size += mem::size_of::<u32>(); in parcel_size() 797 size += mem::size_of::<u32>(); in parcel_size() 801 size += mem::size_of::<u32>(); in parcel_size() 805 size += mem::size_of::<u64>(); in parcel_size() 809 size += mem::size_of::<i32>(); in parcel_size()
|
/third_party/rust/crates/once_cell/src/ |
H A D | imp_pl.rs | 171 use std::mem::size_of; in test_size() 173 assert_eq!(size_of::<OnceCell<bool>>(), 1 * size_of::<bool>() + size_of::<u8>()); in test_size()
|
/third_party/rust/crates/minimal-lexical/src/ |
H A D | fpu.rs | 21 use core::mem::size_of; 60 let cw_precision = match size_of::<T>() { in set_precision()
|
/third_party/rust/crates/serde/serde/src/de/ |
H A D | size_hint.rs | 14 if mem::size_of::<Element>() == 0 { in cautious() 19 MAX_PREALLOC_BYTES / mem::size_of::<Element>(), in cautious()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/ |
H A D | zero-sized-array.rs | 50 ::std::mem::size_of::<ZeroSizedArray>(), in bindgen_test_layout_ZeroSizedArray() 82 ::std::mem::size_of::<ContainsZeroSizedArray>(), in bindgen_test_layout_ContainsZeroSizedArray() 112 ::std::mem::size_of::<InheritsZeroSizedArray>(), in bindgen_test_layout_InheritsZeroSizedArray() 134 ::std::mem::size_of::<DynamicallySizedArray>(), in bindgen_test_layout_DynamicallySizedArray() 166 ::std::mem::size_of::<ContainsDynamicallySizedArray>(), in bindgen_test_layout_ContainsDynamicallySizedArray()
|