byte_marks
A rust library to mark/unmark transmitted/received byte boundaries for messages.
Example
//The segmented message over the wire chunk|suffix| chunk | suffix| tail
let message = "StreamingsUfFiX withsUfFiX markssUfFiX and tailtAiL";
//The following is for only showing validation
let mut segments = Vec new;
segments.push;
segments.push;
segments.push;
segments.push;
//Cursor is akin to a Tcpstream
let mut cursor = new;
//From the stream create an iterator and validate the received message chunks
let marked = new;
let zipped = marked.into_iter.zip;
for in zipped
Shows how to unmark byte chunks out from a stream of marked bytes
let random_texts = ;
let mut randomizer = thread_rng;
let num_strings: usize = randomizer.gen_range;
let mut orig_strings = vec!;
let mut marked_bytes = vec!;
let marker = new;
for _ in 0..num_strings
//Marked bytes may be written to a file/sent across the wire
//Get the orginal strings back from marked bytes on receipt
let unmarked = marker.unmark.unwrap.0;
//We must get same bytes back with demarcating bytes removed
//Lets reconstruct the strings back and validate
for i in 0..unmarked.len