![]() |
little-endian h4x - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5) +--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30) +--- Thread: little-endian h4x (/showthread.php?tid=7169) |
little-endian h4x - noob007 - 07-24-2011 let's say you have an array of two chars [lua]char * poop = new char[2]();[/lua] instead of writing to memory twice to write to both char's, you can do an epix h4x and only write to memory once! [lua]*(short *)poop = 'h'|('i' << 8);[/lua] now poop contains: [lua]{'h','i'}[/lua] in that order. u liek RE: little-endian h4x - Chaos - 07-26-2011 These 'H4x' threads keep confusing me more and more. But they seem to work from what I see. |