以下结果缓冲区结构与联合一起定义,该联合支持各种 AutoCAD 和 ObjectARX 数据类型,如下所示:resbufads_u_val union ads_u_val { ads_real rreal; ads_real rpoint[3]; short rint; // Must be declared short, not int. char *rstring; long rlname[2]; long rlong; struct ads_binary rbinary; }; struct resbuf { struct resbuf *rbnext; // Linked list pointer short restype; union ads_u_val resval; }; 注意:整数字段类似于二进制数据字段;两者都保存扩展的实体数据。longresval.rlongresval.rbinary
下图显示了结果缓冲区列表的示意图形式: |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:45
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.