{"id":208,"date":"2014-08-26T01:17:57","date_gmt":"2014-08-25T17:17:57","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=208"},"modified":"2014-08-26T01:17:57","modified_gmt":"2014-08-25T17:17:57","slug":"qmsgpack-delphic-builder%e4%b8%8bmessagepack%e5%8d%8f%e8%ae%ae%e7%9a%84%e9%ab%98%e6%95%88%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=208","title":{"rendered":"QMsgPack-Delphi\/C++ Builder\u4e0bMessagePack\u534f\u8bae\u7684\u9ad8\u6548\u5b9e\u73b0"},"content":{"rendered":"<p>\u9996\u5148\uff0c\u5173\u4e8eMessagePack\u534f\u8bae\uff0c\u8bbf\u95eehttp:\/\/msgpack.org\u53ef\u4ee5\u4e86\u89e3\u8be6\u7ec6\u7684\u683c\u5f0f\u7ea6\u5b9a\u53ca\u5404\u79cd\u8bed\u8a00\u7684\u5b9e\u73b0\u3002<\/p>\n<p>\u5176\u6b21\uff0cMessagePack\u534f\u8bae\u53f7\u79f0\u6bd4JSON\u5feb\uff0c\u4f46\u901f\u5ea6\u7684\u5feb\u6162\u8fd9\u4e2a\u4e1c\u897f\u53d7\u5404\u4e2a\u5b9e\u73b0\u7684\u9650\u5236\uff0c\u6709\u7684\u5b9e\u73b0\u7684Json\u6bd4MessagePack\u7684\u5b9e\u73b0\u8981\u66f4\u5feb\u4e00\u4e9b\uff0c\u6240\u4ee5\u4e0d\u8981\u76f2\u76ee\u7684\u5c31\u968f\u4fbf\u62ff\u4e00\u4e2aMessagePack\u5b9e\u73b0\u5c31\u8ba4\u4e3a\u6bd4JSON\u5feb\u3002<\/p>\n<p>\u672b\u4e86\uff0c\u672c\u4eba\u8ba4\u4e3aMessagePack\u534f\u8bae\u6700\u4e3b\u8981\u7684\u4f18\u52bf\u662f\u5728\u4f53\u79ef\uff0c\u800c\u4e0d\u662f\u5728\u4e8e\u901f\u5ea6\u3002\u7531\u4e8e\u5176\u7c7b\u578b\u660e\u786e\uff0c\u4e0d\u9700\u8981\u7c7b\u578b\u63a8\u65ad\uff0c\u5f00\u53d1\u7684\u96be\u5ea6\u76f8\u5bf9\u8fd8\u662f\u6bd4\u8f83\u4f4e\u7684\u3002<\/p>\n<p>\u73b0\u5728\u8fdb\u5165\u6b63\u9898\uff1a<\/p>\n<p>QMsgPack\u662fQDAC\u9879\u76ee\u5b9e\u73b0\u7684MessagePack\u534f\u8bae\uff0c\u652f\u6301MessagePack\u5b98\u65b9\u89c4\u683c\u8868\uff08<a href=\"https:\/\/github.com\/msgpack\/msgpack\/blob\/master\/spec.md\">\u94fe\u63a5<\/a>\uff09\u7684\u6240\u6709\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ec\u6269\u5c55\u7c7b\u578b\u3002\u7531\u4e8eDelphi\u4e0bMessagePack\u534f\u8bae\u7684\u5b9e\u73b0\u8f83\u5c11\uff0c\u6240\u4ee5\u6ca1\u6709\u4ec0\u4e48\u5565\u901f\u5ea6\u6bd4\u8f83\uff0c\u8981\u6d4b\u8bd5\u5176\u6027\u80fd\uff0c\u53ef\u4ee5\u8fdb\u5165Demos\\Delphi\\VCL\\QMsgPack\u76ee\u5f55\u4e0b\uff0c\u7f16\u8bd1Demo\uff0c\u5728\u6211\u7684\u8ba1\u7b97\u673a\u4e0a\uff0c\u52a0\u8f7d\u4e00\u4e2a30\u591aM\u7684\u6587\u4ef6\uff0c\u7528\u65f6\u4e0d\u52301\u79d2\uff0c\u53c2\u8003\u4e0b\u56fe\uff1a<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2014\/08\/QQ\u622a\u56fe20140825161552.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-209\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2014\/08\/QQ\u622a\u56fe20140825161552-300x96.jpg\" alt=\"QMsgPack\u52a0\u8f7d\u901f\u5ea6\" width=\"300\" height=\"96\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2014\/08\/QQ\u622a\u56fe20140825161552-300x96.jpg 300w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2014\/08\/QQ\u622a\u56fe20140825161552.jpg 751w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>QMsgPack\u5355\u5143\u4f7f\u7528\u9700\u8981\u4ee5\u4e0b\u6587\u4ef6\u652f\u6301\uff1aqdac.inc\u3001qstring.pas\u3001qrbtree.pas\u3001qmsgpack.pas\uff0c\u5b83\u5305\u62ec\u4e24\u4e2a\u7c7b\uff1aTQMsgPack\u548cTQHashedMsgPack\uff0c\u4e24\u8005\u7684\u533a\u522b\u5728\u4e8e\u524d\u8005\u6ca1\u6709\u4f7f\u7528\u54c8\u5e0c\u9488\u5bf9\u67e5\u8be2\u8fdb\u884c\u5168\u9762\u4f18\u5316\uff0c\u7406\u8bba\u4e0a\u67e5\u8be2\u6027\u80fd\u8981\u5f31\u4e8e\u540e\u8005\uff0c\u4f46\u76f8\u5e94\u7684\u5176\u5b83\u65b9\u9762\u7684\u5f00\u9500\u4e5f\u8981\u5c0f\u4e8e\u540e\u8005\u3002<\/p>\n<p>QMsgPack\u7684\u63a5\u53e3\u548cQJSON\u4fdd\u6301\u4e86\u826f\u597d\u7684\u4e00\u81f4\u6027\uff0c\u719f\u6089\u4e00\u4e2a\uff0c\u53e6\u4e00\u4e2a\u4f1a\u5f88\u5feb\u719f\u6089\u638c\u63e1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\uff0c\u5173\u4e8eMessagePack\u534f\u8bae\uff0c\u8bbf [&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":[9,44],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-qdac","category-qmsgpack"],"views":5416,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/208","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=208"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":212,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions\/212"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}