Microsoft states that this will have no effect on existing FileStream operations.
微软声称这对于既有的FileStream操作没有任何影响。
I use the FileStream class in this code to illustrate operating on data at the byte level.
我使用该代码中的filestream类来说明如何在字节级别操作数据。
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.
默认情况下,每个FileStream都使用8KB的缓冲区,因此该实现所使用的内存要远远少于前面读取并处理整个文件的代码。
For an example, see the.net Framework documentation for the CryptoStream class, which shows you how to encrypt a byte array from an incoming FileStream object.
有关示例,请参阅cryptostream类的. NETFramework文档,它说明了如何加密来自传入的FileStream对象的字节数组。
This method relies on the FileStream class to buffer the input and output files appropriately, so that the code can work byte by byte to perform the necessary processing.
该方法依靠FileStream类来适当地缓冲输入和输出文件,以便代码可以逐个字节地执行必要的处理。
This method relies on the FileStream class to buffer the input and output files appropriately, so that the code can work byte by byte to perform the necessary processing.
该方法依靠FileStream类来适当地缓冲输入和输出文件,以便代码可以逐个字节地执行必要的处理。
应用推荐