On Wed, 18 Apr 2012 15:40:39 +1000 David Seikel <onef...@gmail.com> said:

> Does eet use a checksum or anything to detect if eet files got
> corrupted?  If so, how does the app find out about it?  eet_data_read()
> returning NULL?

no checksums. if compressed, decompression of a data segment fails and u get
NULL. if header is unusable (doesnt have keys or points out of file) u get
null, if header points to wrong place in file - u dont know - u get wrong data
(if compressed it'd be not able to be decompressed). same with signed data. if
its not compressed and not signed, unless the file is truncated during or
before the data blob, you won't know its corrupt unless u have a way to verify
the data blob itself. as such eet encoded data structs willl probably fail to
decode in this situation even if not compressed as u are pointing to garbage
that will make no sense. if you are hell bent on ensuring the file u have is
exactly as it was intended originally - checksum the whole file yourself and
keep md5/sha1 or whatever sums separately. :)

> If not, is there an easy way to checksum all the data, so I can do it
> myself?  Using the serialization stuff, with lists, variable arrays,
> sub structures, and other things that mean I can't just walk the bytes
> of a single blob of memory to checksum it all in one go.
> 
> -- 
> A big old stinking pile of genius that no one wants
> coz there are too many silver coated monkeys in the world.


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to