check_asar_format

Function check_asar_format 

Source
pub async fn check_asar_format(
    reader: &mut (impl AsyncRead + Unpin),
) -> Result<Option<u32>>
Expand description

Checks if a file is in asar format by reading and checking first 16 bytes.

Returns Some(header_len) if it is an asar archive, or None if it isn’t.