Skip to main content

decode_with

Function decode_with 

Source
pub fn decode_with<F: Format + ?Sized>(
    format: &F,
    file: &AssetPath,
    bytes: &[u8],
    cx: &DecodeCx<'_>,
) -> Result<F::Asset, Vec<ContentError>>
Expand description

format’s asset in bytes (the file file), unless the file is bigger than format or cx allow.