TinyOS中ONE、ONE_NOK、TCAST释义

关键字含义备注
ONEA pointer that always refers to a single object, similar to a C++ reference.一个指针,它总是指向单个对象,类似于C++的引用。
ONE_NOKSame as ONE but may be NULL.和ONE一样,但可以为空 。
COUNT(n)A pointer that always refers to a block of at least n objects.一种指针,它总是指向至少n个对象的块。
COUNT_NOK(n)Same as COUNT but may be NULL.和COUNT一样,但可以为空 。
BND(n,m)A pointer p such that n≤p<m, and that is aligned with respect to n and m.一种指针p,使n≤p<m,并与n和m对齐。
BND_NOK(n,m)Same as BND but may be NULL.和BND一样,但可以为空 。
TCAST(type,expr)A trusted cast, which tells Deputy to just trust the programmer. This is needed to perform casts that are safe, but are beyond the reach of Deputy’s type system. Pointer casts in the network stack (e.g. getHeader() and getFooter() code) tend to fall into this category.一个值得信任的角色,它告诉代理只信任程序设计员。这是执行安全的强制转换所必需的,但是代理的类型系统无法访问。网络堆栈中的指针类型转换(例如getHeader()和getFooter()代码)往往属于这一类。
TRUSTEDBLOCKCode that is completely trusted (i.e., ignored by Deputy). This is used in very few places, and should be avoided when possible.完全可信的代码(即被代理忽略)。这在极少数地方使用,应尽可能避免。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值