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

Method parse

src/net/send_recv/msg.rs:529–534  ·  view source on GitHub ↗

Create an iterator for control messages that were received without [`RecvAncillaryBuffer`]. # Safety The buffer must contain valid message data (or be empty).

(buffer: &'buf mut [u8])

Source from the content-addressed store, hash-verified

527 ///
528 /// The buffer must contain valid message data (or be empty).
529 pub unsafe fn parse(buffer: &'buf mut [u8]) -> Self {
530 Self {
531 messages: messages::Messages::new(buffer),
532 read_and_length: None,
533 }
534 }
535
536 fn advance(
537 read_and_length: &mut Option<(&'buf mut usize, &'buf mut usize)>,

Callers 1

Calls

no outgoing calls

Tested by 1