Skip to main content
Verticopolis engine

decode_vctower_bytes

Function decode_vctower_bytes 

Source
pub fn decode_vctower_bytes(bytes: &[u8]) -> Result<Value, String>
Expand description

decode_vctower for a file’s bytes, which reads the binary file too: a VCTOWER2 file (the stamp, a newline and the raw deflate bytes) is read as it is, and any other file as its UTF-8 text.