缓冲区缓存——为存储从物理数据文件读取的数据块而分配的内存。
Buffer Cache - Memory allocated for storing data blocks read from physical data files.
默认情况下,每个FileStream都使用8KB的缓冲区,因此该实现所使用的内存要远远少于前面读取并处理整个文件的代码。
By default, each FileStream USES a buffer of 8kb, so this implementation USES much less memory than the prior code that reads and processes the entire file.
transferTo()方法引发DMA引擎将文件内容拷贝到一个读取缓冲区。
The transferTo() method causes the file contents to be copied into a read buffer by the DMA engine.
您可以非常简单地将它指向另外一个文件;从缓冲区中进行读取稍微有些困难。
You can point it at another file quite easily; it's a bit harder to, for instance, read from a buffer.
缓冲区缓存为存储从物理数据文件读取的数据块而分配的内存。
Buffer Cache Memory allocated for storing data blocks read from physical data files.
我的意思是,给我们打开了一个文件读取,复制到缓冲区。
I mean, given we have opened a file for read and it is copied into the buffer.
例如,为了获取输入,我们可能需要指定文件或设备作为信息来源,并且要把地址和内存缓冲区的长度放到输入读取的位置。
For example, to get input, we may need to specify the file or device to use as the source, and the address and length of the memory buffer into which the input should be read.
从文件读取时,文件的内容是第一次读到缓冲区,缓冲区和我们阅读。
During a read from the file, the contents of the file are first read to the buffer, and we read from that buffer.
从文件读取时,文件的内容是第一次读到缓冲区,缓冲区和我们阅读。
During a read from the file, the contents of the file are first read to the buffer, and we read from that buffer.
应用推荐