pub fn seek_marker<T: AsRef<[u8]>>(
stream: &T,
marker: u16,
start_pos: usize,
) -> Result<usize, SerializationError>
Expand description
Search for a u16 bytemarker in a stream.
E.g. This can be an 0xAAAA indicator as a packet delimiter
ยงArguments:
- marker : The marker to search for. Currently, only 16bit markers are supported
- bytestream : The stream to search the number in
- start_pos : Start searching from this position in the stream