关键字 | 含义 | 备注 |
---|---|---|
ONE | A pointer that always refers to a single object, similar to a C++ reference. | 一个指针,它总是指向单个对象,类似于C++的引用。 |
ONE_NOK | Same 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()代码)往往属于这一类。 |
TRUSTEDBLOCK | Code that is completely trusted (i.e., ignored by Deputy). This is used in very few places, and should be avoided when possible. | 完全可信的代码(即被代理忽略)。这在极少数地方使用,应尽可能避免。 |
TinyOS中ONE、ONE_NOK、TCAST释义
最新推荐文章于 2024-10-09 15:16:28 发布