MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / size_of

Function size_of

src/backend/linux_raw/conv.rs:95–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93/// Pass the `mem::size_of` of a type.
94#[inline]
95pub(super) fn size_of<'a, T: Sized, Num: ArgNumber>() -> ArgReg<'a, Num> {
96 pass_usize(core::mem::size_of::<T>())
97}
98
99/// Pass an arbitrary `usize` value.
100///

Callers

nothing calls this directly

Calls 1

pass_usizeFunction · 0.85

Tested by

no test coverage detected