Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// 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