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

Method decode_c_uint

src/backend/linux_raw/reg.rs:143–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141
142 #[inline]
143 pub(super) fn decode_c_uint(self) -> c::c_uint {
144 let bits = self.decode_usize();
145 let c_uint_ = bits as c::c_uint;
146
147 // Converting `raw` to `c_uint` should be lossless.
148 debug_assert_eq!(c_uint_ as usize, bits);
149
150 c_uint_
151 }
152
153 #[inline]
154 pub(super) fn decode_void_star(self) -> *mut c::c_void {

Callers 2

try_decode_c_uintFunction · 0.80
decode_c_uint_infallibleFunction · 0.80

Calls 1

decode_usizeMethod · 0.80

Tested by

no test coverage detected