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

Method assume_init

src/buffer.rs:129–131  ·  view source on GitHub ↗
(self, len: usize)

Source from the content-addressed store, hash-verified

127
128 #[inline]
129 unsafe fn assume_init(self, len: usize) -> Self::Output {
130 len
131 }
132}
133
134impl<T, const N: usize> private::Sealed<T> for &mut [T; N] {

Callers 15

pipeFunction · 0.80
pipe_withFunction · 0.80
tcgetattrFunction · 0.80
tcgetwinsizeFunction · 0.80
socketpairFunction · 0.80
getsockoptFunction · 0.80
tcp_congestionFunction · 0.80
xdp_mmap_offsetsFunction · 0.80
xdp_statisticsFunction · 0.80
unameFunction · 0.80

Calls 2

as_mut_ptrMethod · 0.45
lenMethod · 0.45

Tested by 1

test_getrandom_uninitFunction · 0.64