{"id":213,"date":"2012-07-25T08:59:33","date_gmt":"2012-07-25T08:59:33","guid":{"rendered":"http:\/\/newsite.foxware.co.uk\/?p=213"},"modified":"2012-07-25T18:27:16","modified_gmt":"2012-07-25T18:27:16","slug":"byte-to-hex-conversion","status":"publish","type":"post","link":"http:\/\/foxware.co.uk\/?p=213","title":{"rendered":"Byte to Hex Conversion"},"content":{"rendered":"<p>Converting a Byte Value into a Hexadecimal String<\/p>\n<pre class=\"lang:c# decode:true\" >\n\n\npublic static string ByteToHex(byte b)\n{\n     const string hex = \"0123456789ABCDEF\";\n     int lowNibble = b & 0x0F;\n     int highNibble = (b & 0xF0) >> 4;\n     string s = new string(new char[] { hex[highNibble], hex[lowNibble] });\n     return s;\n}\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Converting a Byte Value into a Hexadecimal String public static string ByteToHex(byte b) { const string hex = &#8220;0123456789ABCDEF&#8221;; int lowNibble = b &#038; 0x0F; int highNibble = (b &#038; 0xF0) >> 4; string s = new string(new char[] { &hellip; <a href=\"http:\/\/foxware.co.uk\/?p=213\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"http:\/\/foxware.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/213"}],"collection":[{"href":"http:\/\/foxware.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/foxware.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/foxware.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/foxware.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213"}],"version-history":[{"count":3,"href":"http:\/\/foxware.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":259,"href":"http:\/\/foxware.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions\/259"}],"wp:attachment":[{"href":"http:\/\/foxware.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/foxware.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/foxware.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}