CorLib  

MemoryStream

MemoryStream overview

Implements:

IObject 
Stream 

Public:

Types:
BufferMode 
Properties:
CanRead (get) Determines if the current MemoryStream can be read.  
CanSeek (get) Determines if the current MemoryStream can seek positions within the stream.  
CanTimeout (get) Returns if the MemoryStream object supports timeout events.  
CanWrite (get) Determines if the current MemoryStream can be written to.  
Capacity (get) Returns the current capacity of the internal stream buffer.  
Capacity (let) Sets the current capacity for the internal stream buffer.  
Length (get) Returns the current length of the stream.  
Position (get) Returns the current position within the stream.  
Position (let) Sets the current position within the stream.  
ReadTimeout (get) Gets the timeout duration for a read operation.  
ReadTimeout (let) Sets the timeout duration for a read operation.  
WriteTimeout (get) Gets the timeout duration of a write operation.  
WriteTimeout (let) Sets the timeout duration for a write operation.  
Methods:
BeginRead Begins an asynchronous buffer read. For a MemoryStream, calling an asynchronous buffer read is identical to calling ReadBlock.  
BeginWrite Begins an asynchronous buffer write. For a MemoryStream, having an asynchronous buffer write is of no use.  
CloseStream Closes the MemoryStream and releases any resources allocated.  
EndRead Signifies the end of an asynchronous read from the stream.  
EndWrite Signifies the end of an asynchronous write to the stream.  
Equals Returns a boolean indicating if the value and this object instance are the same instance.  
Flush This has no purpose in a MemoryStream  
GetHashCode Returns a pseudo-unique number identifying this instance.  
ReadBlock Reads a specifiec number of bytes from the stream.  
ReadByte Reads a single byte from the stream.  
SeekPosition Changes the position within the stream.  
SetLength Sets the current length of the stream.  
ToArray Returns a byte array copy of the underlying byte stream.  
ToString Returns a string representation of this object instance.  
WriteBlock Writes an array of bytes to the underlying stream.  
WriteByte Writes a single byte to the underlying stream.  
WriteTo Writes the underlying stream to another stream.  

See Also