Detect the archive type of a Buffer/Uint8Array