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

Method decode_c_int

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

Source from the content-addressed store, hash-verified

130
131 #[inline]
132 pub(super) fn decode_c_int(self) -> c::c_int {
133 let bits = self.decode_usize();
134 let c_int_ = bits as c::c_int;
135
136 // Converting `raw` to `c_int` should be lossless.
137 debug_assert_eq!(c_int_ as usize, bits);
138
139 c_int_
140 }
141
142 #[inline]
143 pub(super) fn decode_c_uint(self) -> c::c_uint {

Callers 2

try_decode_c_intFunction · 0.80
decode_c_int_infallibleFunction · 0.80

Calls 1

decode_usizeMethod · 0.80

Tested by

no test coverage detected