Detects whether buf contains a ZIP archive by checking the PK\x03\x04 signature at offset 0. Also matches JAR, APK, DOCX, and other ZIP-based formats.
buf
PK\x03\x04
The binary buffer to inspect.
true if the buffer starts with a valid ZIP signature.
true
Detects whether
bufcontains a ZIP archive by checking thePK\x03\x04signature at offset 0. Also matches JAR, APK, DOCX, and other ZIP-based formats.