{"id":1396,"date":"2014-12-05T22:05:03","date_gmt":"2014-12-05T14:05:03","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=1396"},"modified":"2014-12-05T22:14:33","modified_gmt":"2014-12-05T14:14:33","slug":"%e3%80%90%e6%9d%82%e8%b0%88%e6%8c%87%e9%92%88%e3%80%91-%e6%8c%87%e9%92%88%e7%9a%84%e7%a7%bb%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=1396","title":{"rendered":"\u3010\u6742\u8c08\u6307\u9488\u3011- \u6307\u9488\u7684\u79fb\u52a8"},"content":{"rendered":"<p>\u521a\u521a\u5728\u7fa4\u91cc\u770b\u5230\u4e00\u4e2a\u8fd9\u6837\u7684\u95ee\u9898<\/p>\n<div style=\"border-bottom: #cccccc 1px solid;border-left: #cccccc 1px solid;padding-bottom: 5px;background-color: #f5f5f5;padding-left: 5px;padding-right: 5px;border-top: #cccccc 1px solid;border-right: #cccccc 1px solid;padding-top: 5px\" class=\"cnblogs_code\">\n<pre><span style=\"color: #000000\">MonoPixel: PByte;\n\nInc(Integer(MonoPixel));\u8fd9\u4e2a\u572832\u4f4d\u4e0b\u6ca1\u95ee\u9898\uff0c\u4e3a\u556564\u4f4d\u4e0d\u80fd\u7f16\u8bd1\u5462\uff1f<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u548b\u4e00\u770b\uff0c\u4ee5\u4e3a\u662f\u628a\u91cc\u9762\u7684\u503c\u8fdb\u884c\u7d2f\u52a0\uff0c\u540e\u6765\u4e00\u60f3\u5e94\u8be5\u662f\u79fb\u52a8\u4e00\u4e0b\u6307\u9488\u3002<\/p>\n<p>\u5bf9\u4e8e\u8fd9\u79cd\u79fb\u52a8\u6307\u9488\u7684\u505a\u6cd5\u6709\u4e24\u4e2a\u9519\u8bef\uff1a<\/p>\n<p>\u7b2c\u4e00\u4e2a\u662f\u7528\u4e86Integer\uff0c\u6765\u8f6c\u6362\u6307\u9488\u5982\u679c\u572832\u4f4d\u4e0b\u9762\u663e\u7136\u662f\u6ca1\u6709\u95ee\u9898\u7684\uff0c\u4f46\u662f\u5982\u679c\u662f64\u4f4d\uff0c\u6307\u9488\u662f64\u4f4d\uff0c\u663e\u7136\u518d\u7528Integer\u662f\u9519\u8bef\u7684\u3002<\/p>\n<p>\u7b2c\u4e8c\u4e2a\u8f6c\u6362\u6210Ineger\u540e\u52a0\u4e00\uff0c\u90a3\u5c31\u76f8\u5f53\u4e8e\u6574\u6570\u503c + 1\uff0c\u5728PByte\u65f6\u6ca1\u6709\u95ee\u9898\uff0c\u56e0\u4e3aByte\u4e5f\u662f\u4e00\u4e2a\u5b57\u8282\u3002\u4f46\u662f\u5982\u679c\u662fPInteger\u6307\u9488\u5c31\u4f1a\u51fa\u73b0\u9519\u8bef\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6211\u4eec\u6765\u770b\u4e0b\u4ee3\u7801\uff1a<\/p>\n<p>\u5982\u679c\u662fPInteger\u4e0b\u9762\u5e94\u8be5\u600e\u4e48\u6837\u505a\uff1a<\/p>\n<div style=\"border-bottom: #cccccc 1px solid;border-left: #cccccc 1px solid;padding-bottom: 5px;background-color: #f5f5f5;padding-left: 5px;padding-right: 5px;border-top: #cccccc 1px solid;border-right: #cccccc 1px solid;padding-top: 5px\" class=\"cnblogs_code\">\n<pre><span style=\"color: #0000ff\">var<\/span><span style=\"color: #000000\">\n  p, d:PInteger;\n  x : <\/span><span style=\"color: #0000ff\">array<\/span> [<span style=\"color: #800080\">0<\/span>..<span style=\"color: #800080\">10<\/span>] <span style=\"color: #0000ff\">of<\/span><span style=\"color: #000000\"> Integer;\n<\/span><span style=\"color: #0000ff\">begin<\/span><span style=\"color: #000000\">\n  x[<\/span><span style=\"color: #800080\">5<\/span>] := <span style=\"color: #800080\">120<\/span><span style=\"color: #000000\">;\n  p :<\/span>=<span style=\"color: #000000\"> @x;\n  d :<\/span>=<span style=\"color: #000000\"> p;\n  Inc(d, <\/span><span style=\"color: #800080\">5<\/span>);<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u9996\u5148\u6240\u6709\u7684\u6307\u9488\u90fd\u662f\u4e00\u4e2a\u6574\u6570\u503c <\/p>\n<p><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201411\/262210113091420.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201411\/262210161848830.png\" width=\"596\" height=\"285\"><\/a> <\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u5982\u679c\u7528inc\u79fb\u52a8\u6307\u9488\uff0c\u5e76\u4e14\u4f1a\u6309\u7167\u6307\u9488\u7684\u7c7b\u578b\u8fdb\u884c\u7d2f\u52a0\uff0c\u4e0a\u9762PInteger\u7c7b\u578bInc\u540e\u662f\u589e\u52a0\u7684SizeOf(Integer)\u3002\u6307\u5411\u6570\u7ec4\u7684\u4e0b\u4e00\u4e2a\u5143\u7d20\u3002 <\/p>\n<p>\u5982\u679c\u5355\u7eaf\u7684\u8f6c\u6362\u6210\u6574\u6570\u6765 + 1\u4f1a \u6307\u9488\u7684\u503c\u5c31\u662f$12EA75\u663e\u7136\u4e0d\u662f\u6307\u5411\u4e0b\u4e00\u4e2a\u5143\u7d20\u3002\u5f53\u7136\u4f60\u53d6\u5230\u7684\u503c\u4e5f\u662f\u9519\u8bef\u7684\u3002\u5982\u4e0b\u9762\u7684\u56fe <\/p>\n<p><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201411\/262210179342029.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201411\/262210219962854.png\" width=\"640\" height=\"317\"><\/a> <\/p>\n<p>\u663e\u7136d^\u4e0d\u662f\u6211\u4eec\u60f3\u8981\u7684\u6570\u636e\u3002 <\/p>\n<p>\u9664\u4e86\u7528inc\uff0c\u4e5f\u53ef\u4ee5\u8fd9\u6837\u505a\uff0c\u4e0b\u9762\u7684\u505a\u6cd5\u4e5f\u662f\u6b63\u786e\u7684\u3002 <\/p>\n<p><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201411\/262210242774425.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201411\/262210291215377.png\" width=\"646\" height=\"344\"><\/a> <\/p>\n<p>\u8bf7\u64cd\u4f5c\u6307\u9488\u7684\u670b\u53cb\u4eec\u6ce8\u610f\u5566\u3002 <\/p>\n<p>*\u4ee5\u4e0a\u4ee3\u7801\u5728XE6\u4e0b\u9762\u6d4b\u8bd5\u8fd0\u884c <\/p>\n<p>&nbsp;<\/p>\n<p>*\u6ce8\u610f\u6ca1\u6709IntPtr\u7c7b\u578b\u7684\u53ef\u4ee5\u81ea\u5df1\u5b9a\u4e49\u4e0b\u7c7b\u578b<\/p>\n<p>type<\/p>\n<p>&nbsp;&nbsp; IntPtr = cardinal<\/p>\n<p>&nbsp;<\/p>\n<p>==========================================<\/p>\n<p><h3>DIOCP\u5b98\u65b9\u793e\u533a|MyBean\u5b98\u65b9\u793e\u533a<\/h3>\n<p><a title=\"http:\/\/www.diocp.org\/\" href=\"http:\/\/www.diocp.org\/\">http:\/\/www.diocp.org\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>QDAC\u5b98\u65b9\u793e\u533a<\/h3>\n<p><a title=\"http:\/\/www.diocp.org\/\" href=\"https:\/\/blog.qdac.cc\/\">https:\/\/blog.qdac.cc\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521a\u521a\u5728\u7fa4\u91cc\u770b\u5230\u4e00\u4e2a\u8fd9\u6837\u7684\u95ee\u9898 MonoP [&hellip;]<\/p>\n","protected":false},"author":6,"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":[43],"tags":[208,206,207],"class_list":["post-1396","post","type-post","status-publish","format-standard","hentry","category-diocp3","tag-delphi","tag-206","tag-207"],"views":3209,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1396","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1396"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1396\/revisions"}],"predecessor-version":[{"id":1398,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1396\/revisions\/1398"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}