Specifies access capabilities and restrictions for a memory-mapped file or view.
指定记忆体对应档或检视的存取能力和限制。
This will create the memory mapped file but to start using it we will need a map view.
这样,我们就创建了一个内存映射文件。
With the stream in place, we can now create the memory mapped file. Let's see an example.
创建合适的流之后,现在就可以创建内存映射文件了。
Memory-mapped files are an operating system feature that links a block of memory to a file.
内存映射文件是把一块内存连接到一个文件的操作系统特性。
Specifies access rights to a memory-mapped file that is not associated with a file on disk.
指定记忆体对应档的存取权限,这个档案不会与磁碟上的档案相关联。
As the name implies, a memory-mapped file maps a file-like construct to an address in memory.
顾名思义,一个内存映射文件将一个类似文件的结构映射到内存的地址中。
Performance counters use a memory mapped file, or Shared memory, to publish performance data.
性能计数器使用内存映射文件或共享内存发布性能数据。
Now, there is a small drawback with this approach and is related to the size of the memory mapped file.
但是这种方法有个小小的缺点,这和内存映射文件的大小有关。如果事先不知道大小的话,为了以防万一,你可能会构造一个超级大的文件。
Here I am using two different instances of same application to read write data from memory mapped file.
在这里我用两个相同的应用程序的不同实例来读写数据从内存映射文件。
Creates or opens a memory-mapped file that has the specified capacity and access type in system memory.
在系统内存中创建或打开一个内存映射文件。
If we explore the construction of the memory mapped file we can see that there is no stream, we just name the resource.
如果我们想要探究内存映射文件结构的话,不需要构造一个流,只要找到该资源的名字即可。
After reading this article, you should understand NIO, from basic get and put operations to reading a memory-mapped file.
在阅读完本文之后,您应该了解了NIO从基本的get和put操作到读取内存映射文件方面的知识。
You can use the stream returned by this method for sequential access to a memory-mapped file, such as for inter-process communications.
可使用此方法返回的流顺序访问内存映射文件,如如进程间通信。
If two applications open the same memory-mapped file, changes made by one application will be immediately visible to the other application.
如果两个应用程序打开了同一个内存映射文件,那么某个应用程序做出的改变会立即反映给另外一个应用程序。
Finally, another interesting area is the creation of multiple map views, these can work on the same memory mapped file accessing different areas of the files.
最后,让我们来看一下另外一个有意思的领域:创建多个映射视图。它们同时工作访问同一个内存映射文件的不同区域。
The access to the file USES the same syntax as the previous example, remember that if you close the memory mapped file this will be non accessible, this issue catches many developer.
如何访问文件就跟前述的示例一样了。千万记住,如果你关闭了内存映射文件,那么它就不能访问了。
Now if we want to read from it, the other process needs also to create a memory mapped file, we can use the other static initialize that opens an existing one or creates one if it does not exist.
其它进程如何读取该内存映射文件的内容呢。 一样,我们先创建一个内存映射文件。
The identity mapping uses a properties file to determine the mapped user identity.
标识映射使用属性文件来确定映射的用户标识。
So, in the above example, there are 16529 non-computational file pages mapped into memory.
因此,在上面的示例中,一共有16529个非计算性的文件分页被映射到了内存中。
To test this feature, transfer a large file from AIX to the Windows client through a mapped drive.
要想测试此特性,可以通过映射的驱动器把一个大文件从AIX传输到Windows客户机。
In CORBA transformation, components are mapped to the IDL file, so rename this component to NamingAuthority and drag it to the root of this model (that is, UMLtoCORBA).
在CORBA转换中,组件映射为IDL文件,所以将这个组件重命名为NamingAuthority,并将其拖至该模型(UMLtoCORBA)的根目录下。
This is what the view might look like on the file system mapped to, for example, the Z drive.
这就是映射在这个文件系统上视图所呈现的情形,例如,z驱动器。
In the case of Castor with a mapped binding this includes processing the mapping definition file, and for JBind it includes processing the Schema definition for the document.
在使用映射绑定的Castor情形中,该时间包含处理映射定义文件,而对于JBind而言,它包含处理文档的Sche ma定义。
To publish the customer information in an XML format, you can use the same RDB mapped customer.dad file that was used for shredding the customer document to the customer and phone tables.
为了以xml格式发布顾客信息,可以使用前面用来将顾客文档分解到customer和phone表的rdb映射文件customer . dad。
Notice the values of the type attribute in this definition file: the element is mapped to an array, while the nested s are mapped to simple string values.
注意定义文件中type属性的值:元素映射到一个数组,嵌套的映射为简单字符串值。
JSR-109 defines a standard representation for XML schema type definition and element declaration in the JAX-RPC mapping file. Both of them are mapped to the java-xml-type-mapping element.
JSR- 109为JAX - RPC映射文件中的XML模式类型定义和元素声明定义了一个标准表示法。
The initialization parameter is a toolbox description XML file. The servlet is mapped to handle all files with a.vm extension, as shown in Listing 20.
初始化参数是一个工具箱描述XML文件。
Type: Either private (not accessible by other processes), mapped (directly from the file system), or image (the executable code)
Type:私有(不能被其他进程访问)、映射(直接来自文件系统)或镜像(可执行代码)。
You can design to have related entities mapped in one XML file, or you can separate them out.
可以进行设计,让关联实体映射到一个XML文件中,或将它们分离出去。
The server parses the request, which is mapped to a file on a filesystem.
服务器解析这个请求,把它映射到文件系统上的一个文件。
应用推荐