On Thu, 28 Jul 2004, Matt wrote:
I want to know what is Hex Dump? I tried to search in google but
didn't get useful results. I know it is the hexademical representation
of something. But I don't know what is something? From C programmer's
perspective,
I always hear this term. But when do we need to use hex dump? what's
the importances of hex dump?
A hex dump is a utility to display the contents of memory or a file in a
grid of hexidecimal values. It typically has something like:
OFFSET: 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF
OFFSET: 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF
OFFSET: 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF
OFFSET: 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF
Where OFFSET is the offset from start of the file or it is a memory
address. The rest of the information is the hexidecimal values at those
locations.
It is useful for examining binary data. If I am using something like fread
and fwrite to read and write structures, I can do a hex dump to examine
the data and see what it looks like. It is a fast way to see if some of
the data is not getting generated properly.
--
Send e-mail to: darrell at cs dot toronto dot edu
Don't send e-mail to
vi************@whitehouse.gov