Detects whether buf contains a JPEG image by verifying the SOI marker (0xFF 0xD8) at offset 0.
buf
0xFF 0xD8
The binary buffer to inspect.
true if the buffer starts with a valid JPEG SOI marker.
true
Detects whether
bufcontains a JPEG image by verifying the SOI marker (0xFF 0xD8) at offset 0.