pub fn receive(
bytes: &[u8],
local: GuidPrefix,
) -> Option<(Header, Vec<Received>)>Expand description
Reads a message for the participant local and returns its entity
submessages.
The interpreter submessages update the state as in 8.3.4.1: INFO_SRC
sets the source, INFO_DST sets the destination and INFO_TS the time.
Entity submessages whose destination is neither local nor unknown
are left out. Reading stops at the first invalid submessage, and the
submessages before it are kept (8.3.4.1 rule 3 and 8.3.4.2). None
means the header itself is invalid.