Created
November 29, 2013 02:03
-
-
Save Sovietaced/7700609 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generates block data in hex | |
function generateDiskData(activity, t, s, b, data) | |
{ | |
// Convert values to strings, map get ASCII calues to hex strings | |
return (activity.toString() + t.toString() + s.toString() + data.toString()).split ('').map (function (c) { return c.charCodeAt(0).toString(16); }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment