The wrapper code is available with this article (see downloads).
本文后面提供了包装器代码(见下载)。
Another alternative is to write wrapper code around the APIs that use Date.
另外一个可供选择的办法就是编写使用Date的API的包装器代码。
The next few steps build and link the wrapper code, your extension, and the McRypt library.
接下来的几个步骤是构建和链接这些包装程序代码、这个扩展以及mcrypt库。
Listing 2 and Listing 3 show a simple PHP application with a class, methods, and some wrapper code.
清单2和清单3是一个简单的PHP应用程序,其中包含一个类、方法和一些包装器代码。
This can lead to better performance, and you avoid writing SOAP wrapper code around existing functions.
这就会有更好的性能,并且可以避免围绕现有功能编写SOAP封装代码。
For Rob Brewer's liblocation wrapper code and other Maemo applications, see Rob Brewer's Projects page.
RobBrewer 的liblocation 包装器代码和其他Maemo应用程序的相关信息请参见 Rob Brewer's Projects page。
The wrapper code would be the Web service, and it would delegate all invocations to the real implementation.
包装器代码将是Web服务,并且它将委派真正实现的所有调用。
If you cannot change the original API, you can write wrapper code to convert the collection type into an array.
如果您不能改变原始的API,那么您可以书写封装器代码,将聚集类型转化为数组。
Wrapper code, especially where the wrapper has higher trust than code that USES it, can open a unique set of security weaknesses.
包装代码可能会暴露一组特殊的安全弱点,尤其是在包装比使用它的代码拥有更高程度的信任的情况下。
As you can see, a function in Python basically consists of wrapper code indicating that a series of Python statements will be reused.
如您所见,在Python中,函数的基本组成部分是包装器代码,指明将被重用的一系列python语句。
To show off your work, you will need to create two projects: one to hold your Groovy wrapper code and one to hold your sample Ajax UI.
为了展示您的工作,您需要创建两个项目:一个存放groovy包装器代码,另一个用于存放示例AjaxUI。
In such cases, your trusted code can be the go-between, similar to the managed wrapper or library code described in Securing wrapper code.
在这种情况下,受信任的代码可以充当中介,它类似于保护包装代码中所述的托管包装或库代码。
Instead of giving all applications that use these wrappers unmanaged code rights, it is better to give these rights only to the wrapper code.
与其将非托管代码权限授予所有使用这些包装的应用程序,不如只将这些权限授予包装代码。
That is, SELECTs run with a 32-bit wrapper and the bridging code in a 64-bit environment were only 1% slower than the same queries run with a fenced 64-bit wrapper for the same source.
也就是说,在64位环境中,用32位包装器和桥接代码运行的SELECT比在相同数据源上用隔离的64位包装器运行的同样的查询仅慢1%。
A typical example of legacy code contained by a wrapper-facade was a group of related modules responsible for interacting with a remote telephony-device management platform.
包装外观中所含的遗留代码的典型示例是一组相关模块,这些模块负责与远程语音设备管理平台进行交互。
The return code is handed back to the wrapper, which hands it back to your code.
返回代码被传递回到包装器,后者再将其传递回到您自己的代码。
Listing 2 shows the code for the database wrapper class.
清单2显示了这个数据库封装类的代码。
Hiding the BCEL details in my wrapper also gave me convenient places to add more functionality, as in the class and method comparison code.
把BCEL细节隐藏在包装器中,也提供了方便地添加更多功能的位置,就像在类和方法比较代码中一样。
The resulting wrapper function is too long to present inline as a code example, but it seems to work pretty well.
最终得到的包装器函数由于太长而不作为内联代码例子显示,但它能够出色地执行。
As on the client, the wrapped interface requires the application code to extract data from received wrapper objects and construct wrapper objects to be sent.
和在客户端一样,封装的接口要求应用程序代码从收到的封装器对象中提取数据,并构造将要发送的封装器对象。
The managed objects created by the provider contain similar auto-enlistment code as the JDBC wrapper added by the container-supplied connection pool manager.
提供者创建的受管对象包含与JDBC包装器(由容器提供的连接池管理器添加)相似的自动征用代码。
This latter code example, using the widget wrapper classes, is far more intuitive and takes much less coding to produce the same test case.
后面的代码示例使用了窗口小部件封装器类,看上去要直观得多,并且生成相同测试案例所需的编码要少得多。
Using an extension wrapper like SWIG (see Resources), you can create a C extension that executes the most time consuming elements of your program as C code.
使用像SWIG 这样的扩展封装器(请参阅参考资料),可以创建C 扩展,它将程序中最耗时元素作为 C 代码执行。
For a tighter integration, the source code for this component can be used to create a wrapper for specific OLE components that expose more deeply integrated properties and actions.
要实现更紧密的集成,对于公布更深入集成的属性和动作的特定OLE组件,可以使用该组件的源代码为其创建包装器。
Each of these is essentially a wrapper around the data-access code we developed earlier.
这三个方法实质上都是先前开发的数据访问代码的包装器。
The wrapper class would take care of formatting the arguments into an XML string resembling the code above.
该包装类将参数格式化为类似上面代码的XML字符串。
The wrapper of the code parses the XML input data and moves the values to the appropriate addresses in the wrapped component.
代码的包装将解析XML输入数据,并将值传递到包装组件中相应的位置。
You should consider either refactoring your legacy code to ensure that interfaces are strongly typed or building a mediation that will wrapper the weakly typed interface with a strongly typed one.
应该考虑对遗留代码进行重构,以确保接口为强类型;或构建中介,以使用强类型接口包装弱类型接口。
Instead, create a wrapper function that either returns a handle to the existing object for a particular community or creates a new object and adds it to the map, using the code in listing 1.
相反,创建一个包装器函数,它返回现有对象的句柄,或者创建一个新对象并添加到映射中,如清单1中的代码所示。
The client code hands this message up to the wrapper function.
客户端代码将该消息传递给包装器函数。
应用推荐