⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

parse_message

Function parse_message 

Source
pub fn parse_message(
    data: &[u8],
) -> Result<(WaylandMessage, usize), WaylandError>
Expand description

Parse a single Wayland wire-protocol message from the front of data.

Returns the parsed message and the number of bytes consumed so that the caller can advance through a buffer containing multiple messages.