Function wayland_backend::rs::wire::parse_message
source ยท pub fn parse_message<'a>(
raw: &'a [u8],
signature: &[ArgumentType],
fds: &mut VecDeque<OwnedFd>,
) -> Result<(Message<u32, OwnedFd>, &'a [u8]), MessageParseError>
Expand description
Attempts to parse a single wayland message with the given signature.
If the buffers contains several messages, only the first one will be parsed, and the unused tail of the buffers is returned. If a single message was present, the returned slices should thus be empty.
Errors if the message is malformed.