pub fn parse(bytes: &[u8]) -> Result<Self, Unreal4Error> {
        if bytes.is_empty() {
            return Err(Unreal4ErrorKind::Empty.into());
        }

        let mut decompressed = Vec::new();
        std::io::copy(&mut ZlibDecoder::new(bytes), &mut decompressed)
            .map_err(|e| Unreal4Error::new(Unreal4ErrorKind::BadCompression, e))?;

        Self::from_bytes(decompressed.into())
    }
/// Parses a UE4 crash dump from the original, compressed data.
Parses a UE4 crash dump from the original, compressed data.
Parses a UE4 crash dump from the original compressed data .
pub fn parse(bytes: &[u8]) -> Result<Self, Unreal4Error> {
        if bytes.is_empty() {
            return Err(Unreal4ErrorKind::Empty.into());
        }
        let mut decompressed = Vec::new();
        std::io::copy(&mut ZlibDecoder::new(bytes), &mut decompressed)
            .map_err(|e| Unreal4Error::new(Unreal4ErrorKind::BadCompression, e))?;
        Self::from_bytes(decompressed.into())
    }
pub fn parse ( bytes : & [ u8 ] ) -> Result < Self , Unreal4Error > { if bytes . is_empty ( ) { return Err ( Unreal4ErrorKind :: Empty . into ( ) ) ; } let mut decompressed = Vec :: new ( ) ; std :: io :: copy ( & mut ZlibDecoder :: new ( bytes ) , & mut decompressed ) . map_err ( | e | Unreal4Error :: new ( Unreal4ErrorKind :: BadCompression , e ) ) ? ; Self :: from_bytes ( decompressed . into ( ) ) }
Parses a UE4 crash dump from the original, compressed data.
Parses a UE4 crash dump from the original compressed data .
bytes
&[u8]
bytes
&[u8]