{"id":871,"date":"2019-06-19T10:11:22","date_gmt":"2019-06-19T09:11:22","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=871"},"modified":"2022-09-13T14:51:41","modified_gmt":"2022-09-13T13:51:41","slug":"byte-array-strings-2","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/strings-uwp-programming-in-c\/byte-array-strings-2","title":{"rendered":"Byte Array Strings"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">String Direct To Byte Array<br><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tString sTemp;\n\tByte&#91;] TxData;\n\n\tsTemp = \"Hello\";\n\tTxData = System.Text.Encoding.UTF8.GetBytes(sTemp);<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Byte Array To String<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tString sTemp = Encoding.UTF8.GetString(CommsByteArray);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>String Direct To Byte Array Byte Array To String<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[],"class_list":["post-871","post","type-post","status-publish","format-standard","hentry","category-strings-uwp-programming-in-c"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=871"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/871\/revisions"}],"predecessor-version":[{"id":1158,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/871\/revisions\/1158"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}