Skip to main content

read_vis_from_bytes

Function read_vis_from_bytes 

Source
pub fn read_vis_from_bytes(bytes: &[u8]) -> Result<Vis, VisError>
Expand description

Reads a VIS graph from bytes.

§Errors

VisError::TextDecoding when bytes are not Windows-1252 text, and VisError::InvalidData when a line is not the room-and-count grammar or a room’s child list runs off the end. VIS carries no header, so bytes that are not a VIS fail on their first line rather than on a signature.