voxj-codec 0.1.1

Encodes voxj types into .voxj / .voxjz documents.
Documentation
1
2
3
4
5
6
7
8
use crate::{Result, from_voxj_file_bytes, unwrap_voxjz};
use voxj::VoxjSerdeFile;

/// Decodes `.voxjz` (zip) bytes by inflating the single `.voxj` member and
/// decoding it.
pub fn from_voxjz_file_bytes(bytes: &[u8]) -> Result<VoxjSerdeFile> {
    from_voxj_file_bytes(&unwrap_voxjz(bytes)?)
}