{"id":123,"date":"2019-11-28T13:17:30","date_gmt":"2019-11-28T05:17:30","guid":{"rendered":"http:\/\/cf3b5.com\/blog\/?p=123"},"modified":"2019-11-28T13:21:06","modified_gmt":"2019-11-28T05:21:06","slug":"%e9%80%9a%e8%ae%af%e5%8d%8f%e8%ae%ae%e7%9a%84%e6%95%b0%e6%8d%ae%e5%b0%81%e5%8c%85%ef%bc%8c%e4%bb%a5%e5%8f%8a%e6%95%b0%e6%8d%ae%e8%bd%ac%e4%b9%89%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"http:\/\/cf3b5.com\/blog\/?p=123","title":{"rendered":"\u901a\u8baf\u534f\u8bae\u7684\u6570\u636e\u5c01\u5305\uff0c\u4ee5\u53ca\u6570\u636e\u8f6c\u4e49\u95ee\u9898\u89e3\u51b3\u5206\u6790"},"content":{"rendered":"\n<p>\u6700\u8fd1\u5728\u5199\u6811\u8393\u6d3e\u548c\u624b\u673a\u7684\u84dd\u7259\u901a\u8baf\u7684\u7a0b\u5e8f\uff0c\u4e3a\u4e86\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u627e\u4e86\u4e0d\u5c11\u65b9\u6848\uff0c\u90fd\u5efa\u8bae\u5c06\u6570\u636e\u6253\u5305\u4f20\u8f93\uff0c\u6240\u4ee5\u7684\u7814\u7a76\u4e00\u4e0b\u8fd9\u65b9\u9762\u7684\u4e1c\u897f\u3002<\/p>\n\n\n\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u4f20\u8f93\u6570\u636e\u7684\u65f6\u5019\u6700\u597d\u8981\u628a\u6570\u636e\u6253\u5305\u6210\u4e00\u4e2a\u660e\u786e\u5934\u5c3e\u7684\u6570\u636e\u5305\u7684\u5f62\u5f0f\u8fdb\u884c\u4f20\u8f93\uff0c\u63a5\u6536\u65b9\u901a\u8fc7\u8bc6\u522b\u5305\u5934\uff0c\u5305\u5c3e\u786e\u4fdd\u6574\u4e2a\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u9762\u5c31\u6d89\u53ca\u5982\u4f55\u8bc6\u522b\u5305\u5934\u548c\u5305\u5c3e\uff0c\u4ee5\u53ca\u5982\u4f55\u4fdd\u8bc1\u5305\u5185\u7684\u6570\u636e\u4e0d\u4f1a\u51fa\u73b0\u548c\u5305\u5934\u5305\u5c3e\u6df7\u6dc6\u7684\u60c5\u51b5\uff0c\u4e5f\u5c31\u662f\u8f6c\u4e49\u7684\u95ee\u9898\u4e86\uff01<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">\/\/ bytes\u662f\u672a\u8f6c\u4e49\u524d\u6570\u636e\nbyte[] buf = new byte[bytes.length * 2]; \/\/ buf\u4e34\u65f6\u95f4\u6587\u4ef6\uff0c\u5927\u5c0f\u662fbytes\u76842\u500d\uff0c\u9632\u6b62\u8f6c\u4e49\u540e\u957f\u5ea6\u8d85\u8fc7\u539f\u6765\u957f\u5ea6\uff0c\u6700\u591a\u4e0d\u8d85\u8fc72\u500d\uff01\nwhile (i &lt; bytes.length) {\n    \/\/\u8f6c\u4e49\n    byte aByte = bytes[i];\n    switch (aByte) {\n        case 0x02: \/\/0x02\u662f\u5305\u5934\u7684\u8bc6\u522b\u5b57\u8282\uff0c\u4e5f\u5c31\u662f\u5982\u679c\u539f\u6570\u636e\u4e2d\u67090x02\u8fd9\u79cd\u5b57\u8282\uff0c\u5c31\u8981\u8f6c\u4e49\u62100x1b0x17\u8fd9\u4e24\u4e2a\u5b57\u8282\n            buf[j] = 0x1b;\n            buf[j + 1] = 0x17;\n            j = j + 1;\n            continue;\n        case 0x03: \/\/0x03\u662f\u5305\u5c3e\u7684\u8bc6\u522b\u5b57\u8282\uff0c\u4e5f\u5c31\u662f\u5982\u679c\u539f\u6570\u636e\u4e2d\u67090x03\u8fd9\u79cd\u5b57\u8282\uff0c\u5c31\u8981\u8f6c\u4e49\u62100x1b0x18\u8fd9\u4e24\u4e2a\u5b57\u8282\n            buf[j] = 0x1b;\n            buf[j + 1] = 0x18;\n            j = j + 1;\n            continue;\n        case 0x1b: \/\/0x1b\u662f\u8f6c\u4e49\u7684\u8bc6\u522b\u5b57\u8282\uff0c\u4e5f\u5c31\u662f\u5982\u679c\u539f\u6570\u636e\u4e2d\u67090x1b\u8fd9\u79cd\u5b57\u8282\uff0c\u5c31\u8981\u8f6c\u4e49\u62100x1b0x19\u8fd9\u4e24\u4e2a\u5b57\u8282\n            buf[j] = 0x1b;\n            buf[j + 1] = 0x19;\n            j = j + 1;\n            continue;\n        default: \/\/\u666e\u901a\u7684\u5b57\u7b26\u5b57\u8282\u52a0\u5230buf\n            buf[j] = aByte;\n            i = i + 1;\n    }\n    j = j + 1;\n}\nbyte[] bytes1 = new byte[j];\nSystem.arraycopy(buf, 0, bytes1, 0, j);\nreturn bytes1; \/\/\u8f6c\u4e49\u540e\u7684\u5b57\u8282\uff0c\u4e00\u822c\u6bd4\u539f\u6765\u7684\u957f<\/pre>\n\n\n\n<p>\u7b80\u5355\u6765\u8bf40x02\u662f\u5305\u5934\u8bc6\u522b\u5b57\u8282\uff0c0x03\u662f\u5305\u5c3e\u8bc6\u522b\u5b57\u8282\uff0c0x1b\u662f\u8f6c\u4e49\u8bc6\u522b\u5b57\u8282\uff0c\u8fd93\u4e2a\u8bc6\u522b\u5b57\u8282\u5176\u5b9e\u53ef\u4ee5\u4efb\u610f\u9009\u62e9<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">0x02=>0x1b0x17\n0x03=>0x1b0x18\n0x1b=>0x1b0x19<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u5199\u6811\u8393\u6d3e\u548c\u624b\u673a\u7684\u84dd\u7259\u901a\u8baf\u7684\u7a0b\u5e8f\uff0c\u4e3a\u4e86\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u627e\u4e86\u4e0d\u5c11\u65b9\u6848\uff0c\u90fd\u5efa\u8bae\u5c06\u6570\u636e\u6253\u5305\u4f20\u8f93\uff0c\u6240\u4ee5\u7684\u7814\u7a76&hellip; <a href=\"http:\/\/cf3b5.com\/blog\/?p=123\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">\u901a\u8baf\u534f\u8bae\u7684\u6570\u636e\u5c01\u5305\uff0c\u4ee5\u53ca\u6570\u636e\u8f6c\u4e49\u95ee\u9898\u89e3\u51b3\u5206\u6790<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/123"}],"collection":[{"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":4,"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":128,"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/128"}],"wp:attachment":[{"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cf3b5.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}