可以使用 lua_pushcfunction()将一个C函数指针转换成一个内部Lua对象。
You use lua_pushcfunction() to convert a C function pointer into an internal Lua object.
要包含DITA而不用事先转换,不用担心翻译问题,也不会生成新的源文件副本,最好的办法就是使用指针。
The best way to include DITA without transforming in advance, without worrying about translation, and without generating new source copies is simply to do so with a pointer.
与可怕的空指针异常(该异常除了报告空指针之外,对于将要发生的事情什么也不说)不同,类强制转换异常相对来说容易调试。
Unlike the dreaded null-pointer exception (which says nothing about what was expected to occur instead of the null pointer), a class-cast exception is relatively easy to debug.
因此,需要注意将整数值转换为指针类型的应用程序。
Therefore, applications casting integer values to pointer types might need attention.
任何指针类型可以转换为整数型。
将数组转换为指向数组类型的指针,将函数转换为指向函数类型的适当指针。
An array is converted to a pointer to the type of the array; a function is converted to the appropriate pointer to function type.
相反,在运行时发出的错误将会是一个空指针异常而不是类强制转换异常。
Instead, the error signaled at run time would be a null-pointer exception instead of a class-cast exception.
比范围更加微妙的是指针和整型之间的转换;由于这些转换通常都包括强制类型转换,因此编译器很难告诉您到底做错了什么。
More subtle than ranges are conversions between pointers and integers; because these conversions generally involve casts, it's hard for the compiler to tell you what you're doing wrong.
EJB 2.x方法允许灵活地进行性能增强,例如将get()方法映射到数据库指针或流实现上,以降低转换次数。
The EJB 2.x approach enables the flexibility to do performance enhancing tricks like map the get() methods onto a database cursor or stream implementation, reducing the number of transformations.
解决方案是将浮点变量的地址强制转换成一个指向整型类型的指针,如下所示。
The solution is to cast the address of the floating point variable to a pointer to an int, which is then de-referenced as shown below.
这种转换问题的典型示例就是指针。
The classic example to this translation problem is a pointer.
这个函数简单地将元素标识符转换为一个指针,然后调用构造函数,将其他参数不加修改地传递给构造函数。
The function simply converts the element identifier into a pointer and then calls the constructor, passing the remaining arguments unchanged.
这个补丁通过把已缓存的引用从一个序列号转换为指向队列中最高的包(过去已经选择性应答)的指针从而对此情况加以优化。
The patch optimizes this case by converting the cached reference from a sequence number to a pointer to the highest packet in the queue that has been SACKed in the past.
一个指针指向转换后的值。
定义整型类型,任何有效指针都可以转换成这个类型。
Define integer types to which any valid pointer to void can be converted.
如果我有一个对象的指针,转换到它的基类指针对象上,我能通过基类指针调用合适的成员函数。
If I have a pointer to an object cast to one of its base classes, I can call the correct member functions through the abstract base class.
数据越多,内存转换和数据维护所需的映射信息和指针也越多。
The more data, the more mapping information and Pointers required for memory translation and the maintenance of them.
当具有基类的引用或指针,但需要执行不是基类组成部分的派生类操作的时候,需要动态的强制类型转换。
Dynamic casts are needed when we have a reference or pointer to a base class but need to perform operations from the derived class that are not part of the base class.
当具有基类的引用或指针,但需要执行不是基类组成部分的派生类操作的时候,需要动态的强制类型转换。
Dynamic casts are needed when we have a reference or pointer to a base class but need to perform operations from the derived class that are not part of the base class.
应用推荐