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

Function b

examples/buffer_errors.rs:44–46  ·  view source on GitHub ↗
(b: B)

Source from the content-addressed store, hash-verified

42 use rustix::io::retry_on_intr;
43
44 fn b<B: Buffer<u8>>(b: B) -> io::Result<B::Output> {
45 unsafe { Ok(b.assume_init(0)) }
46 }
47
48 let mut event_buf = [0; 4];
49

Callers 2

error_retry_closureFunction · 0.85

Calls 1

assume_initMethod · 0.80

Tested by

no test coverage detected