{"id":1520,"date":"2014-12-18T09:39:35","date_gmt":"2014-12-18T01:39:35","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=1520"},"modified":"2014-12-18T09:39:35","modified_gmt":"2014-12-18T01:39:35","slug":"qmsgpack%e6%9b%b4%e6%96%b0-%e4%bf%ae%e6%ad%a3%e4%ba%86asjson%e7%9a%84%e4%b8%80%e5%a4%84bug%e5%b9%b6%e4%bc%98%e5%8c%96savetostream","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=1520","title":{"rendered":"QMsgPack\u66f4\u65b0-\u4fee\u6b63\u4e86AsJson\u7684\u4e00\u5904Bug\u5e76\u4f18\u5316SaveToStream"},"content":{"rendered":"<h4>\u3010\u66f4\u65b0\u8bf4\u660e\u3011<\/h4>\n<p>SaveToStream\u539f\u6765\u4f7f\u7528Encode\u8fd4\u56deTBytes\u7c7b\u578b\uff0c\u8fd9\u4e00\u70b9\u91cd\u590d\u4e86\u521b\u5efa\u4e86\u6d41\u5bf9\u8c61\uff0c\u5b9e\u9645\u4e0aEncode\u5185\u90e8\u4e00\u6837\u76f4\u63a5\u7528\u4e86\u6d41\u5bf9\u8c61\uff0c\u591a\u51fa\u6765Stream-&gt;TBytes-&gt;TMemoryStream\u7684\u6b65\u9aa4\uff0c\u4f18\u5316\u540e\u76f4\u63a5\u7701\u53bbTBytes\u8f6c\u6362\u548c\u91cd\u590d\u521b\u5efa\u6d41\u7684\u5f00\u9500\u3002<\/p>\n<h4>\u3010\u95ee\u9898\u63cf\u8ff0\u3011<\/h4>\n<p>AsJson\u5c5e\u6027\u5728\u5c06\u5185\u90e8\u7f16\u7801\u4e3aJson\u683c\u5f0f\u65f6\uff0c\u5904\u7406\u7a7a\u5bf9\u8c61\u548c\u6570\u7ec4\u65f6\uff0c\u9519\u8bef\u7684\u9760Count\u800c\u4e0d\u662fDataType\u6765\u786e\u5b9a\u7c7b\u578b\uff0c\u9020\u6210\u6b64\u95ee\u9898\u3002<\/p>\n<h4>\u3010\u66f4\u65b0\u7ea7\u522b\u3011<\/h4>\n<p>\u63a8\u8350<\/p>\n<h4>\u3010\u4e25\u91cd\u7a0b\u5ea6\u3011<\/h4>\n<p>\u4e2d<\/p>\n<h4>\u3010\u7279\u522b\u611f\u8c22\u3011<\/h4>\n<p>\u4e0d\u5f97\u95f2,\u51cc\u98ce\u62a5\u544a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u66f4\u65b0\u8bf4\u660e\u3011 SaveToStream\u539f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,44,2],"tags":[],"class_list":["post-1520","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-qmsgpack","category-update"],"views":2781,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1520"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1520\/revisions"}],"predecessor-version":[{"id":1521,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1520\/revisions\/1521"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}