As a software engineer, I often find myself repeatedly doing mundane tasks that I shouldn’t have to do. Some of these tasks require very specific solutions, so much so that I could probably never find a freeware tool to do them for me.
Luckily, of course, I’m a software engineer. So I make the tool myself. If it will ultimately save me some time, I figure it’s worth my while.
Recently, I have found myself creating byte arrays from memory dumps in order to provide canned input for testing. I would have to copy the hexadecimal memory dump, paste it into my source code, and manually create an array by adding a “0x” to the beginning of each byte using a find and replace. Not only that, but each byte needs to be separated by a comma, etc., in order to be recognized by the compiler. So, I whipped up a quick C# program to do it for me.
I decided to share, if you’re interested:
Download MemToArray (requires .NET 1.1)
Screenshot:
Do be warned that it’s incredibly simple and not exactly feature-rich (this would defeat the purpose of making a quick tool for my own use). It will only work correctly if given a valid memory dump as input, with all memory addresses and ASCII conversions removed (use the ALT key in Visual Studio to enable column selection and select only the memory data itself, as in the following pic).
If you really want more features added, let me know and I’ll consider updating it.
If none of this post makes sense to you, this tool is not for you.
(This software is provided “as-is”, with no warranty whatsoever. Use at your own risk. Mizzouse.com accepts no responsibility for any problems caused by the use of this software)













