Home
last modified time | relevance | path

Searched refs:offset_of (Results 1 – 25 of 26) sorted by relevance

12

/external/rust/crates/memoffset/src/
Doffset_of.rs91 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 …]
Dspan_of.rs234 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()
Dlib.rs98 mod offset_of; module
/external/rust/crates/memoffset/
DREADME.md5 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.
DCargo.toml.orig5 description = "offset_of functionality for Rust structs."
9 keywords = ["mem", "offset", "offset_of", "offsetof"]
DCargo.toml17 description = "offset_of functionality for Rust structs."
19 keywords = ["mem", "offset", "offset_of", "offsetof"]
DMETADATA2 description: "offset_of functionality for Rust structs."
/external/rust/crates/intrusive-collections/src/
Dadapter.rs104 ($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));
Dlib.rs305 pub use memoffset::offset_of;
/external/mesa3d/src/mapi/glapi/gen/
DglX_proto_size.py270 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)
DglX_proto_recv.py270 offset = f.offset_of( param.name )
DglX_XML.py272 def offset_of(self, param_name): member in glx_function
/external/perfetto/src/trace_processor/importers/proto/
Dproto_trace_tokenizer.h127 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()
Dproto_trace_reader.cc102 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()
Dpacket_sequence_state.h108 const size_t offset = message_.offset_of(field.data); in GetOrCreateSubmessageView()
/external/perfetto/src/trace_processor/importers/ftrace/
Dftrace_module_impl.cc45 const size_t fld_off = packet->offset_of(ftrace_field.data); in TokenizePacket()
Dftrace_tokenizer.cc61 size_t off = bundle.offset_of(event.data); in TokenizeFtraceBundle()
/external/rust/crates/crossbeam-epoch/src/
Dinternal.rs47 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/
Dmacros.rs210 macro_rules! offset_of { macro
/external/perfetto/src/trace_processor/importers/common/
Dtrace_blob_view.h67 size_t offset_of(const uint8_t* data) const { in offset_of() function
/external/rust/crates/mio/src/sys/windows/
Dnamed_pipe.rs26 macro_rules! offset_of { macro
34 let offset = offset_of!($t, $($field).+);
/external/rust/crates/intrusive-collections/
DDESIGN.md17 …cro provides a safe and easy way of creating and adapter type. It uses `offset_of!` and `container…
/external/libabigail/doc/manuals/
Dlibabigail-concepts.rst447 ``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/
DCHANGELOG.md122 `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/
Dmod.rs1698 let pathlen = len - offset_of!(sockaddr_un, sun_path); in sockaddr_storage_to_addr()

12