/external/rust/crates/memoffset/src/ |
D | offset_of.rs | 91 macro_rules! offset_of { macro 137 assert_eq!(offset_of!(Foo, a), 0); in offset_simple() 138 assert_eq!(offset_of!(Foo, b), 4); in offset_simple() 139 assert_eq!(offset_of!(Foo, c), 8); in offset_simple() 152 assert_eq!(offset_of!(Foo, a), 0); in offset_simple_packed() 153 assert_eq!(offset_of!(Foo, b), 4); in offset_simple_packed() 154 assert_eq!(offset_of!(Foo, c), 6); in offset_simple_packed() 162 assert_eq!(offset_of!(Tup, 0), 0); in tuple_struct() 163 assert_eq!(offset_of!(Tup, 1), 4); in tuple_struct() 175 assert_eq!(offset_of!(sub::Foo, x), 0); in path() [all …]
|
D | span_of.rs | 234 offset_of!(Test, x)..mem::size_of::<Test>() in ig_test() 238 offset_of!(Test, y)..mem::size_of::<Test>() in ig_test() 243 offset_of!(Test, z)..mem::size_of::<Test>() in ig_test() 247 offset_of!(Test, egg)..mem::size_of::<Test>() in ig_test() 251 offset_of!(Test, x)..offset_of!(Test, y) in ig_test() 255 offset_of!(Test, x)..offset_of!(Test, y) + mem::size_of::<[u8; 56]>() in ig_test()
|
D | lib.rs | 98 mod offset_of; module
|
/external/rust/crates/memoffset/ |
D | README.md | 5 C-Like `offset_of` functionality for Rust structs. 8 * `offset_of!` for obtaining the offset of a member of a struct. 45 assert_eq!(offset_of!(Foo, b), 4); 46 assert_eq!(offset_of!(Foo, d), 4+4+5); 59 `memoffset` has **experimental** support for compile-time `offset_of!` on a nightly compiler. 75 If you intend to use `offset_of!` inside a `const fn`, also add the `const_fn` compiler feature.
|
D | Cargo.toml.orig | 5 description = "offset_of functionality for Rust structs." 9 keywords = ["mem", "offset", "offset_of", "offsetof"]
|
D | Cargo.toml | 17 description = "offset_of functionality for Rust structs." 19 keywords = ["mem", "offset", "offset_of", "offsetof"]
|
D | METADATA | 2 description: "offset_of functionality for Rust structs."
|
/external/rust/crates/intrusive-collections/src/ |
D | adapter.rs | 104 ($ptr as *const _ as *const u8).sub($crate::offset_of!($container, $field)) 215 let ptr = (value as *const u8).add($crate::offset_of!($value, $field));
|
D | lib.rs | 305 pub use memoffset::offset_of;
|
/external/mesa3d/src/mapi/glapi/gen/ |
D | glX_proto_size.py | 270 o = f.offset_of( param_name ) 274 o = f.offset_of( param_name ) 548 f.offset_of( f.parameters[0].name ) 612 sig += "(%u,%u)" % (f.offset_of(p.counter), s)
|
D | glX_proto_recv.py | 270 offset = f.offset_of( param.name )
|
D | glX_XML.py | 272 def offset_of(self, param_name): member in glx_function
|
/external/perfetto/src/trace_processor/importers/proto/ |
D | proto_trace_tokenizer.h | 127 size_t field_offset = whole_buf.offset_of(packet.data); in ParseInternal() 152 const size_t field_off = packet.offset_of(field.data); in ParsePacket()
|
D | proto_trace_reader.cc | 102 const size_t offset = packet.offset_of(field.data); in ParsePacket() 108 const size_t offset = packet.offset_of(field.data); in ParsePacket() 349 auto offset = interned_data.offset_of(bytes.data); in ParseInternedData()
|
D | packet_sequence_state.h | 108 const size_t offset = message_.offset_of(field.data); in GetOrCreateSubmessageView()
|
/external/perfetto/src/trace_processor/importers/ftrace/ |
D | ftrace_module_impl.cc | 45 const size_t fld_off = packet->offset_of(ftrace_field.data); in TokenizePacket()
|
D | ftrace_tokenizer.cc | 61 size_t off = bundle.offset_of(event.data); in TokenizeFtraceBundle()
|
/external/rust/crates/crossbeam-epoch/src/ |
D | internal.rs | 47 use memoffset::offset_of; 613 let entry_ptr = (local as *const Local as usize + offset_of!(Local, entry)) as *const Entry; in entry_of() 620 let local_ptr = (entry as *const Entry as usize - offset_of!(Local, entry)) as *const Local; in element_of()
|
/external/rust/crates/nix/src/ |
D | macros.rs | 210 macro_rules! offset_of { macro
|
/external/perfetto/src/trace_processor/importers/common/ |
D | trace_blob_view.h | 67 size_t offset_of(const uint8_t* data) const { in offset_of() function
|
/external/rust/crates/mio/src/sys/windows/ |
D | named_pipe.rs | 26 macro_rules! offset_of { macro 34 let offset = offset_of!($t, $($field).+);
|
/external/rust/crates/intrusive-collections/ |
D | DESIGN.md | 17 …cro provides a safe and easy way of creating and adapter type. It uses `offset_of!` and `container…
|
/external/libabigail/doc/manuals/ |
D | libabigail-concepts.rst | 447 ``offset_of(data-member-name)`` where `data-member-name` is 517 {offset_after(member0), offset_of(member1)}, 1280 has_data_member_inserted_between = {offset_after(member0), offset_of(member1)}
|
/external/rust/crates/nix/ |
D | CHANGELOG.md | 122 `offset_of!`. 123 - `sys::socket::sockaddr_storage_to_addr`, `offset_of!`, and `Errno::clear` are 125 - `SockAddr::as_ffi_pair`,`sys::socket::sockaddr_storage_to_addr`, `offset_of!`,
|
/external/rust/crates/nix/src/sys/socket/ |
D | mod.rs | 1698 let pathlen = len - offset_of!(sockaddr_un, sun_path); in sockaddr_storage_to_addr()
|