image_blp::parser

Function preloaded_mipmaps

Source
pub fn preloaded_mipmaps(
    mipmaps: &[Vec<u8>],
    i: usize,
) -> Result<Option<&[u8]>, Box<dyn Error>>
Expand description

Helper for parse_blp when external mipmaps are located in filesystem near the root file and loaded in memory when reading the main file.