3 ms·
My FOSS desktop text editor performs a subset of file type identification using the first 12 bytes, detecting the type quite quickly: * https://gitlab.com/Dave
by thangalin 3y ago
My FOSS desktop text editor performs a subset of file type identification using the first 12 bytes, detecting the type quite quickly:
* https://gitlab.com/DaveJarvis/KeenWrite/-/blob/main/src/main/java/com/keenwrite/io/MediaTypeSniffer.java https://gitlab.com/DaveJarvis/KeenWrite/-/blob/main/src/main...
There's a much larger list of file signatures at:
* https://github.com/veniware/Space-Maker/blob/master/FileSignatures.cs https://github.com/veniware/Space-Maker/blob/master/FileSign...