分类:
2008-10-13 17:21:39
..............................................................................
主题:高手们,帮帮忙 原文:Fast I/O is optional for a file system. For
a file system filter driver, it is required if any file
system it filters supports fast I/O. Because all of
the standard Windows NT/2000/XP file systems support
fast I/O, essentially it is required of all filter drivers.
Fast I/O is a mechanism that was introduced into Windows
NT in order to optimize the handling of certain I/O
operations. In addition, fast I/O routines are also
used for a variety of communications channels between
the FSD and various kernel components, including the
I/O Manager, the File System Runtime Library, and the
CIFS File Server. Unfortunately, at the present time
Fast I/O is not documented, although future versions
of the IFS Kit will include documentation on how the
Fast I/O routines are used.
译文:对于文件系统来说,快速I/O是可选的。对于文件系统过滤器驱动程序来说,要求所过滤得任何文件系统都支持快速I/O。因为所有标准的Windows
NT/2000/XP文件系统都支持快速I/O,本质上来说,这是所有过滤器驱动程序所要求的。
快速I/O是一种为了优化特定I/O操作的处理而引入到Windows NT中的一种机制。此外,快速I/O例程也被用于FSD和各种内核组件之间的通信通道,包括I/O
Manager,文件系统运行库,CIFS文件服务器。不幸的是,目前快速I/O文件还不完备,尽管IFS Kit未来的版本将包含快速I/O例程的应用文献。
辨析:网友grace1112译得很棒,没有更多补充。
..............................................................................
主题:packing alignment
这个怎么翻译?
作者:phoenixli ( 秀才 )
回复次数: 4
发表时间: 2005-12-21 14:29:16
原文:packing alignment
译文:封装对齐
辨析:网友恒解释:例如把一块数据如果大小不是4字节的整数倍,加几字节使他成为4字节整数倍,打包对齐。“打包”这个词符合packing作动名词的特性,但是和创建安装程序的“打包”的概念似有冲突,所以还是译为“封装”比较合适。
封装对齐动作是编译器根据硬件的需要而在程序设计语言代码的编译中对数据类型进行插入空白,以对齐数据,避免处理器错误和性能损失。
.............................................................................
主题:什么是hint class ;hint
parameters;hint values ,这里hint作何解呀
作者:liugong0909 ( 书童 )
回复次数: 2
发表时间: 2006-1-16 16:46:18
原文:hint class;hint parameters;hint values
译文:提示类;提示参数;提示信息(值)
辨析:我猜这位网友是在看MFC Library Reference的
CView::OnUpdate时遇到了这个问题。在该条目的Remarks部分出现了所有上面的几个词组。先让我们看看原文:
It is also called by the default implementation of OnInitialUpdate.
The default implementation invalidates the entire client
area, marking it for painting when the next WM_PAINT
message is received. Override this function if you want
to update only those regions that map to the modified
portions of the document. To do this you must pass information
about the modifications using the hint
parameters.
To use lHint, define special hint values, typically a bitmask or an enumerated type, and have the document pass one of these values. To use pHint, derive a hint class from CObject and have the document pass a pointer to a hint object; when overriding OnUpdate, use the CObject::IsKindOf member function to determine the run-time type of the hint object.
……
编译如下:
它也在默认执行OnInitialUpdate函数时被调用。默认执行使得整个客户区域(窗口矩形)失效,以使其在接收到下一个WM_PAINT消息时它被重新绘制。如果你想更新它,可以通过描述被修改的文档部分的信息来重载这个函数。为了这样做,你必须用提示参数传递关于修改的信息。
使用lHint:定义特定的提示信息(值),典型的为位掩码(bitmask)或枚举类型,并让文档传递这些信息(值)的其中一个。使用pHint:从CObject类派生一个提示类并让文档传递指针给一个提示对象;在重载OnUpdate函数时,使用CObject::IsKindOf成员函数来确定提示对象运行时的类型。
……
MFC文档-视图结构的在视图中绘图的“提示”机制,我觉得可以将liugong0909朋友的问题回答出来,但是他的问题还是没有上下文,让我对我的译文还有几分担心啊。
..............................................................................