Friday, January 14, 2011

All your hex words are belong to us

Back in the olden days when I was writing video games and firmware for embedded systems, I would use words encoded as 8-digit hex numbers as a kind if signature to validate data. Example...
if(memChunkHeader == 0xDEADBEEF) {
// data is good
} else {
// invalid data
}
Well, this dude wrote a script... Just go see it and you'll see what I mean.

0 Comments:

Post a Comment

<< Home