At a different point in the code, perhaps where operations are dispatched or at the start of each operation, a similar test is made.
在该代码中的不同点,也许是在分派操作的地方或每个操作的开头,分别执行了一个相似的测试。
A block of code that must be executed in sequence and without interruption to guarantee correct operation of the software.
一段必须按次序执行的代码,并且不能被中断,否则不能保证软件正确地操作。
The download versions of the samples include a test driver and also have some added code for checking the operation of the different models by counting elements, deletes, and adds.
样本的下载版本包括一个测试驱动程序,还有一些添加的代码用于通过计算元素、删除和添加的个数来检查不同模型的操作。
The code in Listing 2 has two methods, one for each operation that was discussed in the previous article of this two-part series see Resources.
清单2中的代码含有两个方法,分别对应于本系列第一篇文章中讨论的两个操作(请参见参考资料)。
Figure 3 details the process of handling an RPG implicit file open operation along with code snippets of the major functions.
图3详细展示了处理一个rpg隐式文件打开操作的过程和主要函数的代码片段。
When an object has to manipulate a collection of objects, it effectively USES procedural code to complete the operation.
当一个对象必须操作一个对象集合时,它有效地使用过程化代码来完成该操作。
After the code corresponding to a business operation has been located, documented, and found worthy of reuse, the next step it to wrap it.
找到了与业务操作对应的代码,对其进行记录并发现有重用价值后,下一步就要对其进行包装了。
It's an extremely useful tool in situations where boilerplate code is required, helping to keep your source tree free of clutter that contributes nothing to the operation of the application.
在需要样板代码的地方,它是极为有用的工具,可以帮助源代码树消除那些对应用程序的操作毫无用处的混乱。
These best practices are then continuously encouraged via the normal operation of the generator, as any further code it generates for the user will reflect those same architectural patterns.
接下来,通过正常的对生成器的操作又会不断鼓励用户使用这些最佳实践,因为后面生成工具所生成的代码也反映出了同样的架构模式。
Note: When I wrote this paper, there was a bug in the generated MDB code -- the code is being generated for an input-output operation instead of an input only operation.
注意:当我写这篇文章时,生成MDB代码中有一个错误——生成的代码用于输入-输出的操作,而不是仅用于输入的操作。
Figure 4 details the process of handling an RPG CHAIN operation along with code snippets of the major functions.
图4详细展示了处理一个RPG CHAIN操作的过程以及主要函数的代码段。
Figure 5 details the process of handling an RPG UPDATE operation along with code snippets of the major functions.
图5详细展示了处理一个RPGUPDATE操作的过程和主要函数的代码段。
Each child element-type in that sequence will be generated (while using code generation tool on WSDL) as a parameter of the operation in the service interface.
将生成(在WSDL上使用代码生成工具时)此序列中的每一个子元素类型作为服务界面中的操作参数。
The job of that intermediary object is to locate an appropriate implementation so that our code does not have to perform the discovery operation itself.
该中间对象的任务就是定位恰当的实现,以使代码不必自己进行发现操作。
The generated method is empty because it's up to the developers to provide code that satisfies the requirements of the operation.
生成的方法是空的,因为要由开发人员负责提供满足操作要求的代码。
However, as the complexity of the operation grows, this kind of code can get complicated and difficult to maintain.
不过,随着操作变得越来越复杂,这类代码也会变得很复杂很难维护。
The CDB contains an operation code defining the particular operation to perform and a number of operation-specific parameters.
CDB包含了用来定义要执行的特定操作的操作代码,以及大量特定于操作的参数。
Asynchronous in this case means "punt my IO operation to a built-in thread pool", with subsequent code checking on the status of those operations and getting results from a "future" handle.
在这里,异步的意义在于“把IO操作放到内置的线程池”,通过代码检查操作状态,获得“未来”句柄结果。
Second, an operation with a large number of similarly typed parameters is vulnerable to transposition errors when invoked from 3GL code.
其次,具有大量类型相似的参数的操作易于在从第三代语言代码进行调用时出现转换错误。
Having restored the operation of the production web site, Barb continues investigating the memory leak in the application's code.
在恢复产品网站的运行之后,Barb继续在应用程序的代码中研究内存泄漏问题。
Finally, the checkin operation on the Claim check service is invoked and the name of the file that stores the attachment is returned to the calling client code (Listing 2).
最后,Claimcheck服务上的checkin操作被调用,且存储附件的文件名返回到调用客户端代码(清单2)。
res is the usual result of an I/O operation: the number of bytes transfered, or a negative error code.
res是IO操作的通常结果:传输的字节数,或者负值的错误码。
The code snippet shown in Listing 1 for the onLoad method specifies that this method initializes and loads all dependencies that are required for the operation of the iWidget.
清单1 中显示了onLoad方法的代码片段,它指定该方法初始化和加载 iWidget操作所需的所有依赖项。
Basically, only two lines of code are required to access and invoke a web service's operation.
基本上指需要两行代码来访问和调用Web服务的操作。
Once we know we are in the right context, we can prepare a log record based on the type of operation executed. The following code excerpt illustrates how it can be done.
一旦我们知道我们位于正确的上下文中,我们就可以准备一个基于被处理的操作类型的日志记录。
The code in Listing 1 is simply performing an HTTP GET operation on the URL provided, requesting the acceptable content types of either a PROVIDER_CATALOG or SERVICE_DESCRIPTION.
清单1中的代码简单地对提供的URL执行了HTTPGET操作,请求 PROVIDER_CATALOG或者 SERVICE_DESCRIPTION 可接受的内容类型。
This line of code executes a bitwise OR operation between firstLengthByte and 0x80 (1000 0000) and stores the result in firstLengthByte.
这一行代码对firstLengthByte和0x80 ( 1000 0000)进行按拉OR操作,并将结果储存到 firstLengthByte 中。
You can detect the presence of back blocks from a failed flash operation (such as an Erase) or an invalid Write operation (discovered through an invalid Error Correction Code, or ECC).
如果flash操作(例如Erase)失败,或者Write 操作无效(通过无效的错误校正代码发现,Error Correction Code,ECC),那么说明出现了坏块。
After you import code, you can simplify an operation by limiting the animation to a subset of the code.
在您导入代码之后,您可以通过限制图形化到代码的一个子集来指定一个操作。
With this backend type, each method of the UDPDMI contains code to obtain the WSIF service, create the input WSIF message, pass it to the WSIF operation, and process any return message.
对于此后端类型,UDPDMI的每个方法都包含用于获取WSIF服务、创建输入 WSIF消息、将其传递到 WSIF操作并处理任何返回消息的代码。
应用推荐