Skip to main content

decode_edit_group

Function decode_edit_group 

Source
pub fn decode_edit_group(bytes: &[u8]) -> Option<Vec<(CodeRange, &str)>>
Expand description

Reads back the edits encode_edit_group wrote, in the order they were sent.

None where the blob is not one: shorter than its count says, a text outside the blob or not UTF-8, or bytes after the last text. The Renderer reads it under the same rules and answers a blob it cannot read with a protocol error.