File/Memory Format Recognition (Needs Testing)

Developed or developing a new product in PureBasic? Tell the world about it.
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

File/Memory Format Recognition (Needs Testing)

Post by Env »

Hey All,

I'm piecing together a library of source code that can identify a file format by reading it's data signature.

So far it's in very early alpha stage, with the ability to recognise a list of already-implemented Image & Archive formats, but I need to test it's ability to handle different endians.

Feel free to rip it apart and I really do welcome any support, or additional signature definitions.

(You will also find another library i'm working on that allows you to access/read/write files and memory with similar commands to the file commands)

https://sourceforge.net/projects/pbutil ... 8FRECO%29/

Thanks!
Thanks!
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Re: File/Memory Format Recognition (Needs Testing)

Post by remi_meier »

You may want to look in the source package of
"file" (the Linux command):
http://www.darwinsys.com/file/
It has a whole lot of magic number signatures.
Athlon64 3700+, 1024MB Ram, Radeon X1600
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

Re: File/Memory Format Recognition (Needs Testing)

Post by Env »

remi_meier wrote:You may want to look in the source package of
"file" (the Linux command):
http://www.darwinsys.com/file/
It has a whole lot of magic number signatures.
Fantastic. Thanks a million.
Thanks!
Post Reply