[][src]Function pmd_pkdpx::decompress_px

pub fn decompress_px<F: Read + Seek>(file: F) -> Result<Vec<u8>, PXError>

decompress a pkdpx or at4px file. It take as input a Bytes buffer, and return a decompressed buffer (or an error)

If atomatically determine if it is a pkdpx or an at4px based on the header If the file isn't the good lenght, it check if what is missing is a padding of a sir0. If it isn't, it return an error.