MemoryMappedViewStream

MemoryMappedViewStream


Represents a view of a memory-mapped file as a sequentially accessed stream.


Implements:

IObject 
Stream 

Public:

Properties:

NameDescription
 CanRead (get) Gets a value indicating whether a stream supports reading.  
 CanSeek (get) Gets a value indicating whether a stream supports seeking.  
 CanTimeout (get) Gets a value that determines whether the current stream can time out.  
 CanWrite (get) Gets a value indicating whether a stream supports writing.  
 Capacity (get) Gets the stream length (size) or the total amount of memory assigned to a stream (capacity).  
 Length (get) Gets the length of the data in a stream.  
 Position (get) Gets the current position in a stream.  
 Position (let) Sets the current position in a stream.  
 ReadTimeout (get) Gets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.  
 ReadTimeout (let) Sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.  
 WriteTimeout (get) Gets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.  
 WriteTimeout (let) Sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.  

Methods:

NameDescription
 BeginRead Begins an asynchronous read operation.  
 BeginWrite Begins an asynchronous write operation. (Consider using WriteAsync instead; see the Remarks section.)  
 CloseStream Closes the current stream and releases any resources (such as file handles) associated with the current stream. 
 CopyTo Reads the bytes from the current stream and writes them to another stream.  
 EndRead Waits for the pending asynchronous read to complete.  
 EndWrite Ends an asynchronous write operation.  
 Equals Determines whether the specified value passed in is equal to the current object.  
 Flush Clears all buffers for this stream and causes any buffered data to be written to the underlying file. 
 GetHashCode Serves as the default hash function.  
 ReadBlock Reads the specified number of bytes into the specified array.  
 ReadByte Reads a byte from a stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.  
 SeekPosition Sets the current position of the current stream to the given value.  
 SetLength Sets the length of the current stream.  
 ToString Returns a string that represents the current object.  
 WriteBlock Writes a block of bytes to the current stream using data from a buffer.  
 WriteByte Writes a byte to the current position in the file stream.  

See Also

Project CorLib Overview

Class MemoryMappedViewStream Overview