Skip to main content

validate_message_batch

Function validate_message_batch 

Source
pub fn validate_message_batch(msgs: &[MailboxMessage]) -> Result<(), i32>
Expand description

Validate a batch of MailboxMessages without copying their envelopes.

Reads Envelope fields directly from the MailboxMessage array via Zig’s strided memory walk (Task 4 zero-copy optimisation). This is safe because MailboxMessage is #[repr(C)] with envelope at offset 0.