Y
Hacker News
new
|
ask
|
show
|
jobs
by
garblegarble
1909 days ago
Here's what the magic bytes look like in FreeBSD, as an example I've linked to the definition of PNG. You can see it's a fair bit more complicated but it does have mime and extension data.
https://github.com/freebsd/freebsd-src/blob/master/contrib/f...